コード例 #1
0
        public ActionResult Delete()
        {
            ViewBag.Message = "Blob.";

            _blobService.Delete();

            return(View("Blob"));
        }
コード例 #2
0
        public async Task Delete_SmallBlob()
        {
            var smallBlob = GetSmallBlob();
            var smallId   = await _service.Put(smallBlob);

            var smallDelete = await _service.Delete(smallId);

            Assert.Equal(1, smallDelete);

            var smallBlobGet = await _service.Get(smallId);

            Assert.True(smallBlobGet == null);

            var noDelete = await _service.Delete(Guid.NewGuid());

            Assert.Equal(0, noDelete);
        }