public TariffComparisonManagerTest() { var productCache = new Mock <IProductCache>(); var products = new IProduct [] { new ProductA("test productA", 22, 5), new ProductB("test productB", 30, 4000, 800) }; productCache.Setup(x => x.GetAllProducts()).Returns(products); _sut = new TariffComparisonManager(productCache.Object); }
public TariffComparisonController(ITariffComparisonManager tariffComparisonManager) { _tariffComparisonManager = tariffComparisonManager; }