Class Recipe
- Assembly
- arolariu.Backend.Domain.Invoices.dll
Recipe model.
[ExcludeFromCodeCoverage]
public sealed record Recipe : IEquatable<Recipe>
- Inheritance
-
Recipe
- Implements
- Inherited Members
Constructors
Recipe()
Parameterless constructor.
public Recipe()
Recipe(string, string, int, RecipeComplexity, ICollection<string>, Uri)
Parameterized constructor.
public Recipe(string name, string description, int approximateTotalDuration, RecipeComplexity complexity, ICollection<string> ingredients, Uri referenceForMoreDetails)
Parameters
namestringdescriptionstringapproximateTotalDurationintcomplexityRecipeComplexityingredientsICollection<string>referenceForMoreDetailsUri
Properties
ApproximateTotalDuration
The recipe estimated duration.
public int ApproximateTotalDuration { get; set; }
Property Value
Complexity
The recipe complexity.
public RecipeComplexity Complexity { get; set; }
Property Value
Description
The recipe description.
public string Description { get; set; }
Property Value
Ingredients
The recipe ingredients.
public ICollection<string> Ingredients { get; init; }
Property Value
Name
The recipe name.
public string Name { get; set; }
Property Value
ReferenceForMoreDetails
The recipe learn more address.
public Uri ReferenceForMoreDetails { get; set; }