예제 #1
0
        public void SaveContainsEntity()
        {
            ExtraContentRepository repository = new ExtraContentRepository();
            ExtraContent           extra      = repository.ExtraContents[0];
            ExtraContent           newExtra   = new ExtraContent();

            newExtra.ID = extra.ID;
            newExtra.Reinitialization(extra);
            Assert.IsFalse(repository.SaveEntity(newExtra));
        }
예제 #2
0
        public void SaveNullEntity()
        {
            ExtraContentRepository repository = new ExtraContentRepository();

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