private void SetupLoadExchangeRate(SetupLoadConfiguration config)
        {
            config.MockCache.SetupGet(x => x[It.IsAny <string>()]).Returns(config.ExchangeRateReturnedByCache);
            config.MockCache.Setup(x => x.Set(It.IsAny <string>(), It.IsAny <object>(),
                                              It.IsAny <CacheItemPolicy>(), It.IsAny <string>()));

            config.MockApi.Setup(x => x.MakeApiCall(It.IsAny <string>())).Returns(config.
                                                                                  MessageReturnedByApi);
        }
        public ExchangeRateServiceTest(ExchangeRateFixture fixture, UserFixture userFixture)
        {
            this.fixture     = fixture;
            this.userFixture = userFixture;

            mockUserService = new Mock <IUserService>();
            mockApiService  = new Mock <IApiService>();
            mockCache       = new Mock <ObjectCache>();

            service = new ExchangeRateService(mockUserService.Object, mockApiService.Object, mockCache.Object);
            setupLoadConfiguration = new SetupLoadConfiguration
            {
                MockApi   = mockApiService,
                MockCache = mockCache
            };
        }