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)); }
public async Task GivenUserIsAdmin_WhenResolving_CoffeeIsLaunched() { await _coffeeCommands.Resolve(command); _coffeeBreakService.Verify(coffeeService => coffeeService.LaunchCoffeeBreak(Channel)); }