public ExchangeRatesApiControllerTests() { _fixture = new Fixture(); _exchangeRatesService = Substitute.For <IExchangeRatesService>(); _apiKeyGeneratorService = Substitute.For <IApiKeyGeneratorService>(); _config = _fixture.Create <MyConfig>(); }
public ExchangeRatesApiController(IExchangeRatesService exchangeRatesService, IApiKeyGeneratorService apiKeyGeneratorService, MyConfig config) { _exchangeRatesService = exchangeRatesService; _apiKeyGeneratorService = apiKeyGeneratorService; _config = config; }