示例#1
0
        public ShopItemTests()
        {
            _shopItem = new ShopItem();

            var fixture = new OmitRecursionFixture();

            _category = fixture.Create <Category>();

            fixture.Freeze <ShopItem>();
            _shopItemLeft  = fixture.Create <ShopItem>();
            _shopItemRight = fixture.Create <ShopItem>();
        }
示例#2
0
        public CategoryTests()
        {
            _category = new Category();

            var fixture = new OmitRecursionFixture();

            _shopItems = fixture.CreateMany <ShopItem>().ToList();

            fixture.Freeze <Category>();
            _categoryLeft  = fixture.Create <Category>();
            _categoryRight = fixture.Create <Category>();
        }