Fix ambiguous Gang/Dish/DishModifications references in EpsonTest build
Use fully-qualified KitchenReceipt namespace for Gang, Dish, and DishModifications in BuildSampleKitchenReceipt and BuildSampleKitchenReceiptNextDish to resolve CS0104 errors caused by identical type names in BarReceipt and KitchenReceipt namespaces. Add global.json to pin SDK to .NET 8.0 for compatibility with .slnx. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -310,13 +310,13 @@ public static class TestHelpers
|
|||||||
TableNumber = "22"
|
TableNumber = "22"
|
||||||
};
|
};
|
||||||
|
|
||||||
receipt.Gangs.Add(new Gang(1, "Gang"));
|
receipt.Gangs.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Gang(1, "Gang"));
|
||||||
receipt.Gangs.Add(new Gang(2, "Gang"));
|
receipt.Gangs.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Gang(2, "Gang"));
|
||||||
|
|
||||||
receipt.Gangs[0].Dishes.Add(new Dish(1, "Avocado Sashimi with some addition to cause line wrapping")
|
receipt.Gangs[0].Dishes.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Dish(1, "Avocado Sashimi with some addition to cause line wrapping")
|
||||||
{
|
{
|
||||||
Size = "XL",
|
Size = "XL",
|
||||||
Modifications = new DishModifications
|
Modifications = new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.DishModifications
|
||||||
{
|
{
|
||||||
Removed = new List<string> { "Wasabi" },
|
Removed = new List<string> { "Wasabi" },
|
||||||
Added = new List<string> { "Extra Ginger" }
|
Added = new List<string> { "Extra Ginger" }
|
||||||
@@ -325,9 +325,9 @@ public static class TestHelpers
|
|||||||
GuestId = 1,
|
GuestId = 1,
|
||||||
Price = 123.45m
|
Price = 123.45m
|
||||||
});
|
});
|
||||||
receipt.Gangs[0].Dishes.Add(new Dish(2, "Avocado Sashimi with some addition to cause line wrapping") { GuestId = 2 });
|
receipt.Gangs[0].Dishes.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Dish(2, "Avocado Sashimi with some addition to cause line wrapping") { GuestId = 2 });
|
||||||
receipt.Gangs[0].Dishes.Add(new Dish(1, "Avocado Sashimi with some addition to cause line wrapping") { GuestId = 3 });
|
receipt.Gangs[0].Dishes.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Dish(1, "Avocado Sashimi with some addition to cause line wrapping") { GuestId = 3 });
|
||||||
receipt.Gangs[0].Dishes.Add(new Dish(1, "Baby Spinach Salad with Truffl"){GuestId = 2});
|
receipt.Gangs[0].Dishes.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Dish(1, "Baby Spinach Salad with Truffl"){GuestId = 2});
|
||||||
//receipt.Gangs[0].Dishes.Add(new Dish(1, "Beef Tataki")
|
//receipt.Gangs[0].Dishes.Add(new Dish(1, "Beef Tataki")
|
||||||
//{
|
//{
|
||||||
// Modifications = new DishModifications
|
// Modifications = new DishModifications
|
||||||
@@ -347,8 +347,8 @@ public static class TestHelpers
|
|||||||
// GuestId = 4
|
// GuestId = 4
|
||||||
//});
|
//});
|
||||||
|
|
||||||
receipt.Gangs[1].Dishes.Add(new Dish(1, "Avocado Sashimi") { GuestId = 1 });
|
receipt.Gangs[1].Dishes.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Dish(1, "Avocado Sashimi") { GuestId = 1 });
|
||||||
receipt.Gangs[1].Dishes.Add(new Dish(1, "Baby Spinach Salad with Truffl") { GuestId = 2 });
|
receipt.Gangs[1].Dishes.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Dish(1, "Baby Spinach Salad with Truffl") { GuestId = 2 });
|
||||||
//receipt.Gangs[1].Dishes.Add(new Dish(1, "Beef Tataki") { GuestId = 3 });
|
//receipt.Gangs[1].Dishes.Add(new Dish(1, "Beef Tataki") { GuestId = 3 });
|
||||||
//receipt.Gangs[1].Dishes.Add(new Dish(1, "Salmon Taco") { GuestId = 4 });
|
//receipt.Gangs[1].Dishes.Add(new Dish(1, "Salmon Taco") { GuestId = 4 });
|
||||||
|
|
||||||
@@ -368,7 +368,7 @@ public static class TestHelpers
|
|||||||
SpecialInstruction = "Gang schicken"
|
SpecialInstruction = "Gang schicken"
|
||||||
};
|
};
|
||||||
|
|
||||||
receipt.Gangs.Add(new Gang(2, "Gang"));
|
receipt.Gangs.Add(new Inspectron.Epson.PrintServer.Printers.Utils.KitchenReceipt.Gang(2, "Gang"));
|
||||||
// to dishes in next dish
|
// to dishes in next dish
|
||||||
//receipt.Gangs[0].Dishes.Add(new Dish(1, "Avocado Sashimi")
|
//receipt.Gangs[0].Dishes.Add(new Dish(1, "Avocado Sashimi")
|
||||||
//{
|
//{
|
||||||
|
|||||||
6
global.json
Normal file
6
global.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"sdk": {
|
||||||
|
"version": "8.0.419",
|
||||||
|
"rollForward": "latestPatch"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user