コード例 #1
0
        public BookMock WithCategory(BookCategory category = null)
        {
            Value.Categories.Add(BookCategoryBookMock.Get(Value, category ?? BookCategoryMock.Get(Key)));

            return(this);
        }
コード例 #2
0
        public BookMock WithCategory()
        {
            Value.Categories.Add(BookCategoryBookMock.Get(Value, BookCategoryMock.Get(Key)));

            return(this);
        }