public ElasticHostedService( IElasticProvider elasticProvider, ICustomJsonSerializer serializer, IConfiguration configuration, ILogger logger) { _provider = elasticProvider; _serializer = serializer; _configuration = configuration; _logger = logger; }
public LoginViewModelHandler( IApplicationInfoProvider applicationInfoProvider, ICustomJsonSerializer jsonSerializer) { if (applicationInfoProvider == null) { throw new ArgumentNullException(nameof(applicationInfoProvider)); } if (jsonSerializer == null) { throw new ArgumentNullException(nameof(jsonSerializer)); } _applicationInfoProvider = applicationInfoProvider; _jsonSerializer = jsonSerializer; }
public virtual void SetUp() { _applicationInfoProvider = _applicationInfoProvider.Fake(); _customJsonSerializer = _customJsonSerializer.Fake(); _sut = new LoginViewModelHandler(_applicationInfoProvider, _customJsonSerializer); }