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)); }
public void SaveNullEntity() { SectionRepository repository = new SectionRepository(); Assert.IsFalse(repository.SaveEntity <Section>(null)); }