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