public void should_read_file_content_from_localfile() { IStorePolicy policy = ServiceActivator.Get<LocalPolicy>(); FileContentReader reader = new FileContentReader(policy); var content = reader.Read(file); Console.WriteLine(content); }
public void should_read_file_content_from_mongo_db() { IStorePolicy policy = ServiceActivator.Get<MongoPolicy>(); string remoteFile = "sample.docx"; policy.Add(file, remoteFile); FileContentReader reader = new FileContentReader(policy); var content = reader.Read(remoteFile); Console.WriteLine(content); policy.Delete(remoteFile); }