Exemple #1
0
        public void SaveContainsEntity()
        {
            SectionRepository repository = new SectionRepository();
            Section           section    = repository.Sections[0];
            Section           newSection = new Section();

            newSection.ID = section.ID;
            newSection.Reinitialization(section);
            Assert.IsFalse(repository.SaveEntity(newSection));
        }
Exemple #2
0
        public void SaveNullEntity()
        {
            SectionRepository repository = new SectionRepository();

            Assert.IsFalse(repository.SaveEntity <Section>(null));
        }