the project url of my mvc application is hosted like this localhost:port/AppName
I created a new unit test project to test the mvc app using nunit framework and for approval tests I used Approval Tests Library
[Test]
[UseReporter(typeof(FileLauncherReporter),typeof(ClipboardReporter))]
public void PaymentPopUpController_IndexView()
{
//Arrange
PortFactory.MvcPort = 8080;
// Act
Func<ActionResult> ScopeControllerTest = new ScopeController()._Index;
// Approve
MvcApprovals.VerifyMvcPage(ScopeControllerTest);
}
MvcApprovals.VerifyMvcPage throws an error saying that it couldn't find the url since I didn't set the right project url :
The Following error occurred while connecting to:
http: // localhost: 8080/ Scope / _index
error:
The remote server returned an error: (404) Not Found.
So my question is how to set the right url to set with nunit for mvc approval test