21 строка
581 B
C#
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;
|
|
}
|
|
}
|
|
}
|