Пример #1
0
        public void GetTopic_ExistentTopic_ShouldReturnSpecificTopicFromDB()
        {
            topicRepositoryInMemory.Add(oneTopic);
            topicRepositoryInMemory.Add(anotherTopic);
            topicRepositoryInMemory.SaveChanges();

            Assert.AreEqual(topicRepositoryInMemory.Get(oneTopic.Id),
                            oneTopic);
        }