Exemplo n.º 1
0
        public void Details_returns_view_with_correct_model()
        {
            var view          = Controller.View(DocumentId) as PartialViewResult;
            var returnedModel = (DocumentModalViewModel)view.Model;

            Assert.AreEqual(returnedModel.DocumentTypeId, DocumentTypeId);
            Assert.AreEqual(returnedModel.DocumentTypes.Count, 5);
        }