public void costTestType() { OutingRepo outingRepo = new OutingRepo(); outingRepo.SeedList(); double actual = outingRepo.OutingCostByType(EventType.Golf); double expected = 814.5; Assert.AreEqual(expected, actual); }
public void totalCostForType() { Console.WriteLine("What outing type would you like to see total cost:\n" + "1. Golf\n" + "2. Bowling\n" + "3. Amusement Park\n" + "4. Concert\n"); EventType eventType = (EventType)int.Parse(Console.ReadLine()) - 1; double typeCost = _OutingRepo.OutingCostByType(eventType); Console.WriteLine($"Total cost of all types of outings {typeCost}\n"); Console.ReadKey(); }