public void SetUp() { _discountLibrary = A.Fake <IObtainDiscounts>(); _vatLibrary = A.Fake <IObtainVAT>(); _calculator = new PriceCalculator(_discountLibrary, _vatLibrary); A.CallTo(() => _vatLibrary.Get(A <ProductCategory> .Ignored, A <string> .Ignored)).Returns(0); _products = new List <Product>() { new Product("Apple", ProductCategory.Food, 10), new Product("Apple", ProductCategory.Food, 10), new Product("Hax phone", ProductCategory.Tech, 20000) }; }
public PriceCalculator(IObtainDiscounts discountLibrary, IObtainVAT vatStore) { _discountLibrary = discountLibrary; _vatStore = vatStore; }