예제 #1
0
        public async Task ThenBabySitterShouldHaveCharged(string firstName, string lastName, long charge)
        {
            var sitters = await _fixture.GetBabySitters();

            var sitter = sitters.FindByName(firstName, lastName);

            var shift = await _fixture.GetBabySitterShift(sitter.Id, ScenarioContext.Current.EndedShiftId());

            Assert.Equal(charge, shift.AmountCharged);
        }