appcenter-sdk-dotnet/Tests/Microsoft.AppCenter.Test.Wi.../Utils/MockApplicationSettingsFact...

21 строка
581 B
C#

using Microsoft.AppCenter.Utils;
using Moq;
namespace Microsoft.AppCenter.Test.Utils
{
public class MockApplicationSettingsFactory : IApplicationSettingsFactory
{
private readonly Mock<IApplicationSettings> _applicationSettingsMock;
public MockApplicationSettingsFactory(Mock<IApplicationSettings> applicationSettingsMock)
{
_applicationSettingsMock = applicationSettingsMock;
}
public IApplicationSettings CreateApplicationSettings()
{
return _applicationSettingsMock.Object;
}
}
}