public void GetEntityWithNotExistingID() { SectionRepository repository = new SectionRepository(); Section resultSection = repository.GetEntity <Section>(NotExistindID); Assert.IsNull(resultSection); }
public void GetEntityEqualsToOriginal() { SectionRepository repository = new SectionRepository(); List <Section> sections = repository.Sections; Section resultSection = repository.GetEntity <Section>(ExistingID); Assert.AreEqual(repository.Sections.Where(u => u.ID == ExistingID).FirstOrDefault(), resultSection); }