public async Task TestCanPurgeModInfo() { var sqlService = Fixture.GetService <SqlService>(); var modId = long.MaxValue >> 3; await sqlService.AddNexusModFiles(Game.SkyrimSpecialEdition, modId, DateTime.Now, new NexusApiClient.GetModFilesResponse { files = new List <NexusFileInfo> { new NexusFileInfo { file_name = "blerg" } } }); var api = await NexusApiClient.Get(); var modInfoResponse = await api.GetModFiles(Game.SkyrimSpecialEdition, modId); Assert.Single(modInfoResponse.files); Assert.Equal("blerg", modInfoResponse.files.First().file_name); await AuthorAPI.PurgeNexusModInfo(modId); }
protected override async Task <ExitCode> Run() { Console.WriteLine(await AuthorAPI.PurgeNexusModInfo(ModId)); return(ExitCode.Ok); }