private async Task RevalidateLists() { var result = await AuthorAPI.UpdateServerModLists(); Assert.NotNull(result); var sql = Fixture.GetService <SqlService>(); var settings = Fixture.GetService <AppSettings>(); var job = await sql.GetJob(); Assert.NotNull(job); Assert.IsType <UpdateModLists>(job.Payload); job.Result = await job.Payload.Execute(sql, settings); await sql.FinishJob(job); Assert.Equal(JobResultType.Success, job.Result.ResultType); }
protected override async Task <ExitCode> Run() { CLIUtils.Log($"Job ID: {await AuthorAPI.UpdateServerModLists()}"); return(0); }
protected override async Task <int> Run() { Console.WriteLine($"Job ID: {await AuthorAPI.UpdateServerModLists()}"); return(0); }