Esempio n. 1
0
        public void GetEntityWithNotExistingID()
        {
            SectionRepository repository    = new SectionRepository();
            Section           resultSection = repository.GetEntity <Section>(NotExistindID);

            Assert.IsNull(resultSection);
        }
Esempio n. 2
0
        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);
        }