예제 #1
0
        public async Task InitializeNotCreate()
        {
            var container = Substitute.For<IContainer>();
            container.CreateIfNotExists().Returns(Task.FromResult(false));

            var w = new BlobWriter(container);
            var result = await w.Initialize();

            Assert.IsFalse(result);

            await container.Received().CreateIfNotExists();
        }
예제 #2
0
        public async Task InitializeNotCreate()
        {
            var container = Substitute.For <IContainer>();

            container.CreateIfNotExists().Returns(Task.FromResult(false));

            var w      = new BlobWriter(container);
            var result = await w.Initialize();

            Assert.IsFalse(result);

            await container.Received().CreateIfNotExists();
        }