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 MongoFsFileRepositoryCreateTmpFileTest1()
        {
            var repo    = new MongoFsSingleCopyFileRepository();
            var content = Guid.NewGuid().ToString();
            var orginal = repo.CreateTmpFile("txt", DateTime.Now.AddDays(1), getProbe(content));

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