I have the following:
SiteViewModel testForm = new SiteViewModel
{
SiteID = 0,
DateCreated = DateTime.Now,
Name = "A",
};
SiteController controller = new SiteController(mockSiteRepository.Object);
//// Act
SiteViewModel result = controller.Edit(testForm); // This will not work because Edit is an ActionResult... but I want to get the model that comes out the end of the ActionResult
How do I go about getting the model from the ActionResult method so I can run tests upon it?