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); }
public ClassesManager(Data.IClassesRepository classesRepository, FileManager fileManager) { _ClassesRepository = classesRepository; _FileManager = fileManager; }
public ImageController(IFileStore fileStore) { _FileManager = new FileManager(fileStore); }