Beispiel #1
0
        public void ItemsControllerGetOneItem_Test()
        {
            using (var context = new ItemsContext(ContextOptions))
            {
                ItemsController controller = new ItemsController(context);
                var             item1      = controller.GetElement(1);

                var obj = new Item()
                {
                    Id = 1, Description = "Opis", Name = "El_1", Price = 5
                };
                Assert.AreEqual(obj, item1);
            }
        }