public Builder ByLoadTest(LoadTest loadTest) { instance.Path = loadTest.GetDiagnosticPath(); instance.MessagesByClient = loadTest.MessagesByClient; instance.Clients = loadTest.Clients; instance.FileNameEvidence = loadTest.FileNameEvidence; instance.TotalSendedMessages = loadTest.TotalSendedMessages; return(this); }
public static Log ProcessFile(LoadTest loadTest) { var lines = new FileReader().Read(loadTest.AnalyzedLogPath); var diagnosticPath = loadTest.GetDiagnosticPath(); var createFolderDirectory = Directory.CreateDirectory(diagnosticPath); loadTest.Log = new Log(lines, loadTest.Id); loadTest.Diagnostic = new Diagnostic(loadTest.Log, loadTest.TotalSendedMessages); new List <IReportFactory> { new ProcessReportFactory(), new GeneralReportFactory() }.ForEach(r => { r.Create(loadTest).Excecute(); }); return(loadTest.Log); }