コード例 #1
0
ファイル: IEntityTest.cs プロジェクト: callumg2895/DataTrack
        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);
        }