public void GivenValidUserId_GenerateInvoice() { Ride ride1 = new Ride(2, 2); Ride ride2 = new Ride(2, 1); rideRepository.AddRideRepository("XYZ", ride1); rideRepository.AddRideRepository("XYZ", ride2); Assert.AreEqual(43.0d, invoiceGeneratorNormalRide.TotalFareForMultipleRidesreturn(rideRepository.returnListByUserId("XYZ"))); Assert.AreEqual(21.5d, invoiceGeneratorNormalRide.averagePerRide); Assert.AreEqual(2, invoiceGeneratorNormalRide.numOfRides); }