Skip to content

Commit

Permalink
Fix unit test doesn't pass on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarincev committed Nov 16, 2019
1 parent 2ef7f51 commit eb433b4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
using Microsoft.Net.Http.Headers;
using Moq;
using VirtoCommerce.LiquidThemeEngine;
using VirtoCommerce.Storefront.Model;
using VirtoCommerce.Storefront.Model.Common;
using VirtoCommerce.Storefront.Model.Stores;
using Xunit;
using Language = VirtoCommerce.Storefront.Model.Language;
Expand All @@ -35,6 +37,10 @@ public ResponseCachingTests(WebApplicationFactory<Startup> factory)
mockStoreService.Setup(x => x.GetAllStoresAsync()).ReturnsAsync(new Store[] { new Store { Id = "Electronics", DefaultLanguage = new Language("en-US") } });
services.AddSingleton(mockStoreService.Object);

var mockCurrencyService = new Mock<ICurrencyService>();
mockCurrencyService.Setup(x => x.GetAllCurrenciesAsync(It.IsAny<Language>())).ReturnsAsync(new Currency[] { });
services.AddSingleton(mockCurrencyService.Object);

})
).CreateClient();
//Make initial request to get anonymous cookies
Expand Down

0 comments on commit eb433b4

Please sign in to comment.