Example #1
0
 public void Save <TData>(TData data, string fileName) =>
 _fileProvider.Write(_serializationProvider.Serialize(data),
                     GetFilePath(fileName));
Example #2
0
 public static System.Threading.Tasks.Task WriteFakeAsync(this IFileProviderSync provider, byte[] output,
                                                          string fileName)
 {
     provider.Write(output, fileName);
     return(System.Threading.Tasks.Task.CompletedTask);
 }