public void PersonInsert() { var thing = new ThingsListModel() { Name = "Obraz" }; var inserted = thingRepositorySUT.Insert(thing); Assert.NotNull(inserted); using (var context = new GalleryDbContext()) { Assert.Contains(context.Things, x => x.Id == inserted.Id); } }
void AddThingsInList() { var things = new ThingsListModel(); things.Name = Name; thingRepository.Insert(things); OnLoad(); messenger.Send(new ThingsOrPeronsUpdatedMessage()); }