public void CanGetCreatedItem() { IEventRepository eventRepository = new EventRepository(Context); const string testName = "Test Event"; var newEventDto = new EventDto { ChurchId = 1, Name = testName }; var eventId = eventRepository.SaveItem(newEventDto); var eventItem = eventRepository.GetItem(eventId); Assert.That(eventItem.Name, Is.EqualTo(testName)); eventRepository.DeleteItem(eventId); }