public async Task WhenICalculateNightlyCharge( string startTime, string bedtime, string leaveTime) { var startDateTime = startTime.ToLocalDateTime(); var bedDateTime = bedtime.ToLocalDateTime(); var leaveDateTime = leaveTime.ToLowerInvariant().Contains("am") ? leaveTime.ToLocalDateTime().PlusDays(1) : leaveTime.ToLocalDateTime(); var total = await _fixture.CalculateNightlyCharge(startDateTime, bedDateTime, leaveDateTime); ScenarioContext.Current.Total(total); }