public GrantPermissionToUserAsync()
            {
                _discordGuild = MockHelper.CreateDiscordGuild(0);
                _discordUser  = MockHelper.CreateDiscordUser(0);

                _permission = new TestPermission();
            }
            public RevokePermissionFromUserAsync()
            {
                _discordGuild = MockHelper.CreateDiscordGuild(0);
                _discordUser  = MockHelper.CreateDiscordUser(0);

                _permission = new TestPermission();
            }
Example #3
0
            public override async Task InitializeAsync()
            {
                await base.InitializeAsync();

                var discordUser = MockHelper.CreateDiscordUser(0);
                var user        = await this.Users.AddUserAsync(discordUser);

                _user = user.Entity;
            }
Example #4
0
 public AddUserAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
 public HasUserConsentedAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
Example #6
0
 public GrantUserConsentAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
 public GetOrRegisterUserAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
 public RevokeUserConsentAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
Example #9
0
 public IsUserKnownAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }