Ejemplo n.º 1
0
 public void TestFileCreateOrUpdate()
 {
     var manager = new FileManager(new SystemFileStroe());
     var target = FileId.FromFileId("2.jpg");
     using (var fs = File.OpenRead("1.jpg"))
     {
         manager.CreateOrUpdate(target, fs);
     }
     Assert.IsTrue(manager.Exists(target));
     manager.Delete(target);
 }
Ejemplo n.º 2
0
 public ClassesManager(Data.IClassesRepository classesRepository, FileManager fileManager)
 {
     _ClassesRepository = classesRepository;
     _FileManager = fileManager;
 }
Ejemplo n.º 3
0
 public ImageController(IFileStore fileStore)
 {
     _FileManager = new FileManager(fileStore);
 }