public ConsumerResult <bool> Consume(TestClassInMemoryInfo testClassInMemoryInfo) { Console.WriteLine($"Test template name: {testClassInMemoryInfo.TestClassName}\n"); Console.Write(testClassInMemoryInfo.TestClassData); return(new ConsumerResult <bool>(true, true)); }
public ConsumerResult <string> Consume(TestClassInMemoryInfo testClassInMemoryInfo) { string filePath = filePath = $"{_outputDirectoryPath}\\{testClassInMemoryInfo.TestClassName}"; Exception error = null; try { File.WriteAllText(filePath, testClassInMemoryInfo.TestClassData); } catch (Exception exception) { error = exception; } return(new ConsumerResult <string>(error == null, filePath)); }