|
|
@ -43,8 +43,6 @@ public static class ExportWrapper
|
|
|
|
|
|
|
|
|
|
|
|
// Perform export only if it hasn't been done before
|
|
|
|
// Perform export only if it hasn't been done before
|
|
|
|
if (!File.Exists(filePath))
|
|
|
|
if (!File.Exists(filePath))
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await new ExportChannelsCommand
|
|
|
|
await new ExportChannelsCommand
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -54,13 +52,6 @@ public static class ExportWrapper
|
|
|
|
OutputPath = filePath
|
|
|
|
OutputPath = filePath
|
|
|
|
}.ExecuteAsync(new FakeConsole());
|
|
|
|
}.ExecuteAsync(new FakeConsole());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// If the export fails, delete the file to prevent it from being used by tests
|
|
|
|
|
|
|
|
File.Delete(filePath);
|
|
|
|
|
|
|
|
throw;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return await File.ReadAllTextAsync(filePath);
|
|
|
|
return await File.ReadAllTextAsync(filePath);
|
|
|
|
}
|
|
|
|
}
|
|
|
|