Esempio n. 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));
        }
Esempio n. 2
0
        public async Task GivenUserIsAdmin_WhenResolving_CoffeeIsLaunched()
        {
            await _coffeeCommands.Resolve(command);

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