Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }