コード例 #1
0
            public GrantPermissionToUserAsync()
            {
                _discordGuild = MockHelper.CreateDiscordGuild(0);
                _discordUser  = MockHelper.CreateDiscordUser(0);

                _permission = new TestPermission();
            }
コード例 #2
0
            public RevokePermissionFromUserAsync()
            {
                _discordGuild = MockHelper.CreateDiscordGuild(0);
                _discordUser  = MockHelper.CreateDiscordUser(0);

                _permission = new TestPermission();
            }
コード例 #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;
            }
コード例 #4
0
 public AddUserAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
コード例 #5
0
 public HasUserConsentedAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
コード例 #6
0
 public GrantUserConsentAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
コード例 #7
0
 public GetOrRegisterUserAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
コード例 #8
0
 public RevokeUserConsentAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }
コード例 #9
0
 public IsUserKnownAsync()
 {
     _discordUser = MockHelper.CreateDiscordUser(0);
 }