public void MongoFsFileRepositoryDeleteFileTest()
        {
            var repo    = new MongoFsSingleCopyFileRepository();
            var orginal = repo.CreateFile("txt", getProbe("1"));

            repo.DeleteFile(orginal);
            Assert.IsNull(repo.GetFileBytes(orginal));
        }
        public void MongoFsFileRepositoryCreateTmpFileTest()
        {
            var repo    = new MongoFsSingleCopyFileRepository();
            var bytes   = new byte[] { 1, 2, 3 };
            var orginal = repo.CreateTmpFile("bin", DateTime.Now.AddDays(1), bytes);

            Assert.IsTrue(repo.GetFileBytes(orginal).SequenceEqual(bytes));
        }
        public void MongoFsFileRepositoryCloneFileTest()
        {
            var repo    = new MongoFsSingleCopyFileRepository();
            var orginal = repo.CreateFile("txt", getProbe("1"));
            var clone   = repo.CloneFile(orginal);

            repo.DeleteFile(orginal);
            Assert.IsTrue(repo.GetFileStream(clone).Length > 0);
        }
        public void MongoFsFileRepositoryCreateFileTest1()
        {
            var repo    = new MongoFsSingleCopyFileRepository();
            var content = Guid.NewGuid().ToString();
            var orginal = repo.CreateFile("txt", getProbe(content));

            using (var r = new StreamReader(repo.GetFileStream(orginal))) {
                Assert.IsTrue(content == r.ReadToEnd());
            }
        }
        public void MongoFsFileRepositoryMongoFsFileRepositoryTest()
        {
            var repo = new MongoFsSingleCopyFileRepository();

            Assert.IsTrue(true);
        }