public void GivenRightTime_WhenCountingParrotOfUser_UserIsReady() { _coffeeRepository.Setup(repo => repo.GetMissingParticipants()).Returns(new List <User>()); _coffeeService.CountParrot(User, Channel, _rightTime); _coffeeRepository.Verify(repo => repo.ConfirmUserReady(User)); }
public void GivenRightTime_WhenCountingParrotOfUser_UserIsReady() { _coffeeRepository.Setup(repo => repo.GetMissingParticipants()).Returns(new List <string>() { "bob" }); var time = new DateTime(1, 1, 1, 18, 0, 0); _coffeeService.CountParrot(User, Channel, time); _coffeeRepository.Verify(repo => repo.ConfirmUserReady(User)); }