public void NoParameter(string controllerName, string expectedResult, ControllerUrlService service) { var controller = CreateClassGenerator(controllerName, null); var result = service.CreateUrlForController(controller); Assert.Equal(expectedResult, result); }
public void Parameter(string controllerName, string attributeValue, string expectedResult, ControllerUrlService service) { var controller = CreateClassGenerator(controllerName, new AttributeArgumentDefinition(attributeValue)); var result = service.CreateUrlForController(controller); Assert.Equal(expectedResult, result); }
public ControllerUrlServiceTest() { _service = new ControllerUrlService(); }