Exemplo n.º 1
0
 public Pizza(int id, string name, decimal price, Spiciness spiciness)
 {
     Id        = id;
     Name      = name;
     Price     = price;
     Spiciness = spiciness;
 }
Exemplo n.º 2
0
 public Pizza(int id, string name, decimal price, Spiciness spiciness)
 {
     this.Id        = id;
     this.Name      = name ?? throw new ArgumentNullException(nameof(name), "A Pizza needs a name");
     this.Price     = price;
     this.Spiciness = spiciness;
 }
Exemplo n.º 3
0
 public Pizza(int id, string name, decimal price, Spiciness spiciness)
 {
     Id        = id;
     Name      = name ?? throw new ArgumentNullException("A pizza needs a name");
     Price     = price;
     Spiciness = spiciness;
 }
Exemplo n.º 4
0
 public Pizza(int id, string name, decimal price,
              Spiciness spiciness)
 {
     this.Id        = id;
     this.Name      = name;
     this.Price     = price;
     this.Spiciness = spiciness;
 }
Exemplo n.º 5
0
        #pragma warning restore 1998
#line 29 "C:\Code\Blazor\PizzaPlace070\PizzaPlace070.Client\Pages\PizzaInfo.cshtml"


        private string SpicinessImage(Spiciness spiciness)
        => $"images/{spiciness.ToString().ToLower()}.png";
Exemplo n.º 6
0
 public ChiliConCarne(Spiciness spicyness)
 {
     this.spicyness = spicyness;
 }
Exemplo n.º 7
0
 public ChiliConCarne(Spiciness spicyness)
 {
     this.spicyness = spicyness;
 }
Exemplo n.º 8
0
 // ***************************************************************************************************
 // Methods
 // ***************************************************************************************************
 protected string PizzaPlace_SpicinessImage(Spiciness spiciness)
 {
     return($"images/{spiciness.ToString().ToLower()}.png");
 }