Пример #1
0
        public void ShouldBeAbleToAddOrder(string productName, int quantity, string total)
        {
            var order = new Order(productName, quantity);

            _basketService.AddOrder(order);

            Assert.That(_basketService.GetTotal(), Is.EqualTo(decimal.Parse(total)));
        }
Пример #2
0
 public BasketDriver WithOrder(Order order)
 {
     _basketService.AddOrder(order);
     return(this);
 }