private Product InsertProduct(Guid productCode, string description, string supplierCode = "", float price = 0.0f, float height = 0.0f, float width = 0.0f, float depth = 0.0f, float weight = 0.0f) { Product p = new Product() { ProductCode = productCode, Description = description, SupplierCode = supplierCode, Price = price, Height = height, Width = width, Depth = depth, Weight = weight }; Session.Save(p); return p; }
private OrderLine CreateOrderLine(Product product, int quantity = 1) { return new OrderLine() { Product = product, Quantity = quantity }; }