Beispiel #1
0
        public void HttpGet_CreateMethod_ReturnsExpectedViewmodel()
        {
            var result = controller.Create();

            Assert.That(result, Is.InstanceOf <ActionResult>());

            var viewResult = (ViewResult)result;

            Assert.That(viewResult.Model, Is.InstanceOf <CustomerViewModel>());
        }