public void when_saving_blob_then_can_read_it()
        {
            var storage = new SqlBlobStorage(this.dbName);

            storage.Save("test", "text/plain", Encoding.UTF8.GetBytes("Hello"));

            var data = Encoding.UTF8.GetString(storage.Find("test"));

            Assert.Equal("Hello", data);
        }
        public void WhenSavingBlobThenCanReadIt()
        {
            var storage = new SqlBlobStorage(_dbName);

            storage.Save("test", "text/plain", Encoding.UTF8.GetBytes("Hello"));

            var data = Encoding.UTF8.GetString(storage.Find("test"));

            Assert.AreEqual("Hello", data);
        }
        public void when_updating_existing_blob_then_can_read_changes()
        {
            var storage = new SqlBlobStorage(dbName);

            storage.Save("test", "text/plain", Encoding.UTF8.GetBytes("Hello"));
            storage.Save("test", "text/plain", Encoding.UTF8.GetBytes("World"));

            var data = Encoding.UTF8.GetString(storage.Find("test"));

            Assert.Equal("World", data);
        }