Example #1
0
 public BasketController(IBasketUtil basketUtil)
 {
     _items = new List <Item>()
     {
         new Item()
         {
             Name = "Apple"
         },
         new Item()
         {
             Name = "Banana"
         }
     };
     _basketUtil = basketUtil;
 }
Example #2
0
 public BasketUtilTests()
 {
     _logger = new Mock <ILogger <BasketUtil> >();
     _sut    = new BasketUtil(_logger.Object);
 }