Table of Contents

Class Recipe

Namespace
arolariu.Backend.Domain.Invoices.DDD.ValueObjects
Assembly
arolariu.Backend.Domain.Invoices.dll

Recipe model.

public sealed record Recipe : IEquatable<Recipe>
Inheritance
Recipe
Implements
Inherited Members

Constructors

Recipe()

Parameterless constructor.

public Recipe()

Recipe(string, string, TimeOnly, RecipeComplexity, ICollection<Product>, Uri)

Parameterized constructor.

public Recipe(string name, string description, TimeOnly duration, RecipeComplexity complexity, ICollection<Product> ingredients, Uri referenceForMoreDetails)

Parameters

name string
description string
duration TimeOnly
complexity RecipeComplexity
ingredients ICollection<Product>
referenceForMoreDetails Uri

Properties

Complexity

The recipe complexity.

public RecipeComplexity Complexity { get; set; }

Property Value

RecipeComplexity

Description

The recipe description.

public string Description { get; set; }

Property Value

string

Duration

The recipe estimated duration.

public TimeOnly Duration { get; set; }

Property Value

TimeOnly

Ingredients

The recipe ingredients.

public ICollection<Product> Ingredients { get; init; }

Property Value

ICollection<Product>

Name

The recipe name.

public string Name { get; set; }

Property Value

string

ReferenceForMoreDetails

The recipe learn more address.

public Uri ReferenceForMoreDetails { get; set; }

Property Value

Uri