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));
        }