Esempio n. 1
0
 public static void SaveCallToFile(Call call, string fileName)
 {
     CreateDirectoryIfNeeded(fileName);
     using (var textWriter = new StreamWriter(new FileStream(fileName, FileMode.OpenOrCreate)))
     {
         CallSerializer.SerializeCall(call, textWriter);
     }
 }
Esempio n. 2
0
 public void SaveCall(Call call)
 {
     var fileName = GetFileName(call.Input);
     SaveCallToFile(call, fileName);
     _calls.Add(call);
 }