public void Should_Kebaberize_ControllerName() { var controllerModelConvention = new KebabCaseRouteTokenReplacementControllerModelConvention(); controllerModelConvention.Apply(controllerModel); controllerModel.ControllerName.Should().Be("test-standard"); }
public void Should_Skip_Kebaberizing_When_TypeName_Does_Not_End_With_Controller() { typeInfo = typeof(TestNonStandardCont).GetTypeInfo(); controllerModel = new ControllerModel(typeInfo, new object[] { }) { ControllerName = "TestNonStandardCont" }; var controllerModelConvention = new KebabCaseRouteTokenReplacementControllerModelConvention(); controllerModelConvention.Apply(controllerModel); controllerModel.ControllerName.Should().Be("TestNonStandardCont"); }