Exemplo n.º 1
0
 public TData Load <TData>(string fileName) =>
 _serializationProvider
 .Deserialize <TData>(_fileProvider.Read(GetFilePath(fileName)));
Exemplo n.º 2
0
 public static System.Threading.Tasks.Task <byte[]> ReadFakeAsync(this IFileProviderSync provider,
                                                                  string fileName) =>
 System.Threading.Tasks.Task.FromResult <byte[]>(provider.Read(fileName));