示例#1
0
        public void GetDetails()
        {
            MockBlobService service    = new MockBlobService();
            BlobController  controller = GetBlobController(service);
            var             id         = service.GetBlobs().First().BlobId;

            ActionResult result = controller.Details(id);

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(ViewResult));

            ViewResult viewResult = (ViewResult)result;

            Assert.IsInstanceOfType(viewResult.ViewData.Model, typeof(BlobViewModel));
        }