public void Setup() { _unitPrice = new UnitPrice(); _activePromotions = new ActivePromotions(); _unitPrice.AddPrice('A', 50); _unitPrice.AddPrice('B', 30); _unitPrice.AddPrice('C', 20); _unitPrice.AddPrice('D', 15); _activePromotions.AddPromotions("3A", 130); _activePromotions.AddPromotions("2B", 45); }
public PromotionEngine(IUnitPrice unitPrice, IActivePromotions activePromotions) { _unitPrice = unitPrice; _activePromotions = activePromotions; }
public void Cleanup() { _unitPrice = null; _activePromotions = null; _promotionEngine = null; }