Пример #1
0
        public void SaveContainsEntity()
        {
            TopicRepository repository = new TopicRepository();
            Topic           topic      = repository.Topics[0];
            Topic           newTopic   = new Topic();

            newTopic.ID = topic.ID;
            newTopic.Reinitialization(topic);
            Assert.IsFalse(repository.SaveEntity(newTopic));
        }
Пример #2
0
        public void SaveNullEntity()
        {
            TopicRepository repository = new TopicRepository();

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