Exemplo n.º 1
0
        public void SectionRepository_CanRetrieve()
        {
            var repo        = new SectionRepository();
            var section     = new Section("секция 1");
            var subsection1 = new Subsection("первый подраздел");
            var subsection2 = new Subsection("второй подраздел");

            section.Add(subsection1, subsection2);
            repo.Store(section);

            var actual = repo.Retrieve(section.Id);

            Assert.AreEqual(section, actual);
        }