Beispiel #1
0
        public void TestUpdateEntryWhithNullList()
        {
            Orders dbOrders = new Orders();
            Order  order    = NewTestOrder();

            var newRep = new TestUpdateEntry();

            newRep.TestUpdateEntryWhithNullList(dbOrders, order);
        }
Beispiel #2
0
        public void TestUpdateEntryWhithList()
        {
            Orders dbOrders = new Orders();

            dbOrders.Medicines.Add(new Medicines()
            {
                Id = 1, Name = "testmed"
            });
            Order order = NewTestOrder();

            order.OrderedMedicines = new List <Medicine>()
            {
                new Medicine()
                {
                    Id = 1, Name = "testmed"
                }
            };

            var newRep = new TestUpdateEntry();

            newRep.TestUpdateEntryWhithList(dbOrders, order);
        }