Exemplo n.º 1
0
        public async Task AcceptRules([Remainder] string bio = "The user didn't provide this information.")
        {
            if (!(Context.User is SocketGuildUser user) || UserIsMember(user))
            {
                return;
            }

            var visibleName = user.Nickname ?? user.Username;

            await _useCase.Execute(new AcceptTheRulesInput(Context.User.Id, visibleName, bio));
        }
Exemplo n.º 2
0
 public async Task NullInput_ShouldThrow()
 {
     await Assert.ThrowsAsync <Exception>(() => _useCase.Execute(null));
 }