public RecommendedSortServiceTest() { _shopperHistoryService = Substitute.For <IShopperHistoryService>(); _productsService = Substitute.For <IProductsService>(); _productSortService = new RecommendedSortService(_productsService, _shopperHistoryService); this.SetUp(); }
public SortServiceTests() { _fixture = FixtureBuilder.Build(); _productSort1 = _fixture.Create <IProductSortService>(); _productSort2 = _fixture.Create <IProductSortService>(); _fixture.Inject <IReadOnlyList <IProductSortService> >(new List <IProductSortService> { _productSort1, _productSort2 }); _productsRepository = _fixture.Freeze <IProductsRepository>(); _sut = _fixture.Create <SortService>(); }
public AscendingSortServiceTest() { _productsService = Substitute.For <IProductsService>(); _productSortService = new AscendingSortService(_productsService); this.SetUp(); }
public SortByPriceTests() { _fixture = FixtureBuilder.Build(); _sut = _fixture.Create <SortByPrice>(); }