public void GetAll()
        {
            var obj = new MedicineViewModel()
            {
                Id = 1, Name = "Keto", Cost = 200
            };
            var itemrepo = new PlaceOrderRepository(itemcontextmock.Object);
            var itemlist = itemrepo.PlaceOrder(obj);

            Assert.NotNull(itemlist);
        }
Beispiel #2
0
 public PlaceOrderService(PlaceOrderRepository placeorderRepository)
 {
     this.PlaceOrderRepository = placeorderRepository;
 }