Ejemplo n.º 1
0
        public void TestIEntity_ShouldAddChildProperties()
        {
            // Arrange
            Author author = GetAuthors(1)[0];
            Book   book   = GetBooks(1)[0];

            // Act
            author.AddChildPropertyValue("books", book);

            // Assert
            Assert.AreEqual(author.Books.Count, 1);
            Assert.AreEqual(author.Books[0], book);
        }