public void ItemsControllerGetElements_Test() { using (var context = new ItemsContext(ContextOptions)) { ItemsController controller = new ItemsController(context); var items = controller.GetAllElements(); Assert.AreEqual(7, items.Count()); } }