Exemplo n.º 1
0
 public void TestRegistrationMethod()
 {
     var routeCollection = new RouteCollection();
     routeCollection.RegisterRestControllers(controllerBaseType:typeof(TestRegistrationController));
     CollectionAssert.IsNotEmpty(routeCollection);
     var first = (Route)routeCollection[0];
     StringAssert.EndsWith(@"/{action}", first.Url);
 }