Class FormulaSection
Namespace: Restaurant.Domain.Aggregates.FormulaAggregate
Assembly: Restaurant.Domain.dll
Inheritance
object ← Entity ← FormulaSection
Inherited Members
Entity.Id, Entity.CreatedAt, Entity.UpdatedAt, Entity.DomainEvents, object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
FormulaSection\(\)
Properties
ContainedProducts
The list of Restaurant.Domain.Aggregates.ProductAggregate.Product that will be available to chose in the Restaurant.Domain.Aggregates.FormulaAggregate.Formula.
Property Value
Name
The name of the "Category" that will be presented to the customer.
Property Value
Methods
AddProduct\(Product\)
Method that add product to a Restaurant.Domain.Aggregates.FormulaAggregate.Formula.
Parameters
productToAdd Product
Create\(string\)
Parameters
name string
Returns
FormulaSection
RemoveProduct\(Product\)
Method that remove product from a Restaurant.Domain.Aggregates.FormulaAggregate.FormulaSection.
Parameters
productToRemove Product
UpdateName\(string\)
Method that update the section name.
Parameters
newName string