Exemple #1
0
 public Pizza(int id, string name, decimal price, Spiciness spiciness)
 {
     Id        = id;
     Name      = name;
     Price     = price;
     Spiciness = spiciness;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #4
0
 public Pizza(int id, string name, decimal price,
              Spiciness spiciness)
 {
     this.Id        = id;
     this.Name      = name;
     this.Price     = price;
     this.Spiciness = spiciness;
 }
        #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";
Exemple #6
0
 public ChiliConCarne(Spiciness spicyness)
 {
     this.spicyness = spicyness;
 }
 public ChiliConCarne(Spiciness spicyness)
 {
     this.spicyness = spicyness;
 }
Exemple #8
0
 // ***************************************************************************************************
 // Methods
 // ***************************************************************************************************
 protected string PizzaPlace_SpicinessImage(Spiciness spiciness)
 {
     return($"images/{spiciness.ToString().ToLower()}.png");
 }