design-patterns/Strategy/Model/Ingredient.cs

15 lines
309 B
C#
Raw Normal View History

2023-09-04 08:27:56 +00:00
namespace StrategyCake.Model;
public class Ingredient
{
public Ingredient(decimal quantity, string unit, string item)
{
Quantity = quantity;
Unit = unit;
Item = item;
}
public decimal Quantity { get; }
public string Unit { get; }
public string Item { get; }
}