public void TestCloseStreamException()
        {
            var factory = new Ds3.Helpers.Strategies.StreamFactory.StreamFactory();
            Func<string, Stream> func = name => new MemoryStream(Encoding.UTF8.GetBytes("I am a stream"));

            factory.CreateStream(func, null, Stubs.Blob1, Stubs.Blob1Length);

            factory.CloseStream(Stubs.Blob1.Context);
            Assert.Throws<StreamNotFoundException>(() => factory.CloseStream(Stubs.Blob3.Context));
        }
        public void TestCloseStream()
        {
            var factory = new Ds3.Helpers.Strategies.StreamFactory.StreamFactory();
            Func<string, Stream> func = name => new MemoryStream(Encoding.UTF8.GetBytes("I am a stream"));

            factory.CreateStream(func, null, Stubs.Blob1, Stubs.Blob1Length);

            factory.CloseStream(Stubs.Blob1.Context);
        }