108 % 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ▼ Ⓡ 8 Output Show output f

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

108 % 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ▼ Ⓡ 8 Output Show output f

Post by answerhappygod »

108 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 8 Output Show Output F 1
108 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 8 Output Show Output F 1 (229.63 KiB) Viewed 24 times
[TestFixture] internal class OpenBarRepositoryTests { [Test] public void AllInventory() { var repo = newOpenBarRepository();
var result =repo.AllInventory.ToList();
using (newAssertionScope()) { result.Count.Should().Be(10); result[0].Id.Should().Be(1); result[0].Name.Should().Be("Savanna Dry"); result[0].Price.Should().Be(17.99M); } }
[Test] public void AllFridgeStockTakes() { var repo = newOpenBarRepository();
var result =repo.AllFridgeStocks.ToList();
using (newAssertionScope()) { result.Count.Should().Be(4750); result[0].Id.Should().Be(1); result[0].Quantity.Taken.Should().Be(0); result[0].Quantity.Added.Should().Be(50); result[0].Inventory.Id.Should().Be(1); result[0].Inventory.Name.Should().Be("Savanna Dry"); result[0].Inventory.Price.Should().Be(17.99M); } }
[Test] public void AllOpenBarRecords() { var repo = newOpenBarRepository();
var result =repo.AllOpenBarRecords.ToList();
using (newAssertionScope()) { result.Count.Should().Be(475); result[0].Id.Should().Be(1); result[0].Date.Should().Be(new DateTime(2021, 01, 01)); result[0].DayOfWeek.Should().Be(DayOfWeek.Friday); result[0].NumberOfPeopleInBar.Should().Be(37); result[0].FridgeStockTakeList[0].Id.Should().Be(1); result[0].FridgeStockTakeList[0].Quantity.Taken.Should().Be(0); result[0].FridgeStockTakeList[0].Quantity.Added.Should().Be(50); result[0].FridgeStockTakeList[0].Inventory.Id.Should().Be(1); result[0].FridgeStockTakeList[0].Inventory.Name.Should().Be("SavannaDry"); result[0].FridgeStockTakeList[0].Inventory.Price.Should().Be(17.99M); } } }}
108 % 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ▼ Ⓡ 8 Output Show output from: Error List Output { 8 O references internal class Program { O references internal static void Main(string[] args) { var repo = new OpenBarRepository(); Question1(repo); } ✔ No issues found Console.WriteLine(Environment. NewLine); Console.WriteLine(Environment. NewLine); Question3 (repo); Console.WriteLine(Environment. NewLine); Console.WriteLine(Environment. NewLine); Console.WriteLine(Environment. NewLine); Console.WriteLine(Environment. NewLine); Console.WriteLine(Environment. NewLine); Question2(repo); Question4(repo); Question5(repo); Question6(repo); Question7(repo); 1 reference private static void Question1(OpenBarRepository repo) { Console.WriteLine("Question 1: What is the most popular drink, including the quantity, on a Wednesday?"); // Write your answer to the console here. // Format e.g. {inventory name}: {quantity} ◄ CH Ln: 1 Ch: 14 SPC LF - д х Search Solution Explorer (Ctrl+;) Solution 'Graduate Recruitment.ConsoleApp' (2 C# GraduateRecruitment.ConsoleApp ▷ ▷ ▷ ▷ Dependencies Data ▷ C# FridgeStockTake.cs C# Inventory.cs c# OpenBarRecord.cs C# Quantity.cs c# OpenBarRepository.cs Entities Files Models ▷ Extensions ▷ C# Decimal Extensions.cs C# Program.cs GraduateRecruitment.UnitTests & Dependencies Data C# OpenBarRepositoryTests.cs Extensions ▷ C# Decimal ExtensionTests.cs C# ConsoleAppTests.cs *ConsoleAppTests
C# GraduateRecruitment.ConsoleApp 108 % 3132 33 34 35 36 37 38 39 40 = 2 Bu 5 6 F 48 49 50123邱55 56 57 58 59 41 42 43 44 45 46 47 54 8 Output Show output from: Error List Output } I reference private static void Question1(OpenBarRepository repo) { Console.WriteLine("Question 1: What is the most popular drink, including the quantity, on a Wednesday?"); // Write your answer to the console here. // Format e.g. {inventory name}: {quantity} 1 reference { private static void Question2 (OpenBarRepository repo) Console.WriteLine("Question 2: What is the most popular drink, including the quantities, per day?"); // Write your answer to the console here. // Format e.g. {day of week} } 1 reference GraduateRecruitment.ConsoleApp.Program { } Main(string[] args) private static void Question3(OpenBarRepository repo) Console.WriteLine("Question 3: Which dates did we run out of Savanna Dry for the last recorded month?"); // Write your answer to the console here. // Format e.g. {year}/{month}/{day} ✔ No issues found {inventory name}: {quantity} 1 reference private static void Question4(OpenBarRepository repo) { Console.WriteLine("Question 4: How many Fanta Oranges do we need to order next week?"); Ln: 1 Ch: 14 SPC + LF ▼ x ⒸA O CAN Search Solution Explorer (Ctrl+;) Solution 'Graduate Recruitment.ConsoleApp' (2 C# GraduateRecruitment.ConsoleApp ▷ ▷ ▷ ▷ ▷ ▲ ▷ Dependencies Data Entities Files Models ▷ C# FridgeStockTake.cs ▷ C# Inventory.cs ▷ C# OpenBarRecord.cs ▷ C# Quantity.cs C# OpenBarRepository.cs Extensions C# Decimal Extensions.cs ▷ C# Program.cs GraduateRecruitment.UnitTests Dependencies Data ▷ c# OpenBarRepositoryTests.cs Extensions ▷ C# Decimal Extension Tests.cs C# ConsoleAppTests.cs ConsoleAppTests
C# GraduateRecruitment.ConsoleApp 108 % | 49 50 1 2 3 H 55 6驭 58 59 60 123 4 5 6印 89笼1 ZB叫5% 51 52 53 54 56 57 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 } Output Show output from: Error List Output 1 reference } GraduateRecruitment.ConsoleApp.Program private static void Question4(OpenBarRepository repo) { Console.WriteLine("Question 4: How many Fanta Oranges do we need to order next week?"); // Write your answer to the console here. // Format e.g. {quanity} { Console.WriteLine("Question 3: Which dates did we run out of Savanna Dry for the last recorded month?"); // Write your answer to the console here. // Format e.g. {year}/{month}/{day} 1 reference private static void Question5(OpenBarRepository repo) ✔ No issues found Main(string[] args) Console riteLine("Questi // Write your answer to the console here. // Format e.g. R{amount} 5: How much do we need to budget next month for Ceres Orange 1 reference private static void Question6(OpenBarRepository repo) { Console.WriteLine("Question 6: How much do we need to budget for next month to restock the fridge?"); // Write your answer to the console here. // Format e.g. R{amount} C← ice?"); Ln: 1 Ch: 14 SPC LF x ▷ Search Solution Explorer (Ctrl+;) Solution 'Graduate Recruitment.ConsoleApp' (2 C# GraduateRecruitment.ConsoleApp ▷ & Dependencies ▷ ▷ 4 ▷ Data OCE0 ▷ ▷ ▷ ▷ Entities Files Models C# FridgeStockTake.cs C# Inventory.cs C# OpenBarRecord.cs C# Quantity.cs c# OpenBarRepository.cs Extensions C# Decimal Extensions.cs ▷ C# Program.cs GraduateRecruitment.UnitTests Dependencies S Data C# OpenBarRepositoryTests.cs Extensions ▷ C# Decimal Extension Tests.cs C# ConsoleAppTests.cs *ConsoleAppTests
108 % 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 - Ⓡ E Output Show output from: Error List Output 1 reference private static void Question5(OpenBarRepository repo) { Console.WriteLine("Question 5: How much do we need to budget next month for Ceres Orange Juice?"); // Write your answer to the console here. // Format e.g. R{amount} } 1 reference private static void Question6(OpenBarRepository repo) { Console.WriteLine("Question 6: How much do we need to budget for next month to restock the fridge?"); // Write your answer to the console here. // Format e.g. R{amount} } 1 reference private static void Question7(OpenBarRepository repo) { Console.WriteLine("Question 7: We're planning a braai and expecting 100 people, how many of each drink should we order ✔ No issues found // Write your answer to the console here. // Format e.g. {inventory name}: {quantity} C Ln: 1 Ch: 14 SPC LF - д х ▷ ▷ ▷ Dependencies Data ▷ C# FridgeStockTake.cs C# Inventory.cs c# OpenBarRecord.cs C# Quantity.cs c# OpenBarRepository.cs Entities Files Models ▷ Extensions ▷ C# Decimal Extensions.cs C# Program.cs GraduateRecruitment.UnitTests & Dependencies Data ▷ C# OpenBarRepositoryTests.cs Extensions ▷ C# Decimal Extension Tests.cs C# ConsoleAppTests.cs *ConsoleAppTests
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply