private static async Task <Response> Execute(Locking_type locking, string xmlFile) { using (var featureStream = File.OpenRead(xmlFile)) { var timer = new Stopwatch(); timer.Start(); var response = await Client.UpdateDatasetFeaturesAsync(clientString, DatasetId, locking, null, null, featureStream); timer.Stop(); Console.WriteLine($"Execute took {timer.Elapsed}"); return(response); }; }
private async Task DeleteByLokalIdAsync(string tempFile, List <Guid> lokalIds, Locking_type locking) { string deleteXmlPath = Wfs.CreateDeleteTransaction(tempFile, lokalIds); Console.WriteLine($"Executing Delete"); var response = await Execute(locking, deleteXmlPath); Assert.IsTrue(response.Features_erased > 0, $"Feature with lokalIds ({string.Join(',', lokalIds)}) not deleted"); }
private async Task DeleteByLokalIdAsync(string tempFile, Guid lokalId, Locking_type locking) { await DeleteByLokalIdAsync(tempFile, new List <Guid> { lokalId }, locking); }