Пример #1
0
        public async Task GivenUserIsAdmin_WhenResolving_CoffeeIsLaunched()
        {
            _adminValidator.Setup(admin => admin.IsUserSlackAdmin(User)).Returns(Task.FromResult(true));

            await _coffeeCommands.Resolve(_command);

            _coffeeBreakService.Verify(coffeeService => coffeeService.LaunchCoffeeBreak(Channel));
        }
Пример #2
0
        public async Task GivenUserIsAdmin_WhenResolving_CoffeeIsLaunched()
        {
            await _coffeeCommands.Resolve(command);

            _coffeeBreakService.Verify(coffeeService => coffeeService.LaunchCoffeeBreak(Channel));
        }