Example #1
0
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            CategoryBuilder.BuildCategory(modelBuilder);
            OrderBuilder.BuildOrder(modelBuilder);
            OrderLineBuilder.BuildOrderLine(modelBuilder);
            CartBuilder.BuildCart(modelBuilder);
            ProductBuilder.BuildProduct(modelBuilder);
            UserProfileBuilder.BuildUserProfile(modelBuilder);
            CartLineBuilder.BuildCartLine(modelBuilder);

            base.OnModelCreating(modelBuilder);
        }
        public void GetCartImpl_GetCart_ReturnsACartModel()
        {
            CartModel cartModel = _cartBuilder.BuildCart();

            cartModel.Should().BeOfType <CartModel>();
        }