示例#1
0
        public async Task <WeeklyResponse> ClaimWeeklyTest(GuildUserReference guildUserReference)
        {
            await using var unit = NewContext();
            var userService        = new UserService(unit, null);
            var transactionService = new TransactionService(userService);
            var guildService       = new GuildService(unit, transactionService);

            return(await guildService.ClaimWeeklyAsync(guildUserReference));
        }