コード例 #1
0
 public void ApiExplorerModelValues_IncludesAllProperties()
 {
     // Assert
     PropertiesAssert.PropertiesAreTheSame(
         typeof(ApiExplorerModel),
         typeof(ApiExplorerModelValues));
 }
コード例 #2
0
 public void RouteDataActionConstraintValues_IncludesAllProperties()
 {
     // Assert
     PropertiesAssert.PropertiesAreTheSame(
         typeof(RouteDataActionConstraint),
         typeof(RouteDataActionConstraintValues));
 }
コード例 #3
0
 public void AttributeRouteInfoValues_IncludesAllProperties()
 {
     // Assert
     PropertiesAssert.PropertiesAreTheSame(
         typeof(AttributeRouteInfo),
         typeof(AttributeRouteInfoValues));
 }
コード例 #4
0
        public void AttributeRouteModelValues_IncludesAllProperties()
        {
            // Arrange
            var exclude = new[] { "Attribute" };

            // Assert
            PropertiesAssert.PropertiesAreTheSame(
                typeof(AttributeRouteModel),
                typeof(AttributeRouteModelValues),
                exclude);
        }
コード例 #5
0
        public void ActionDescriptorValues_IncludesAllProperties()
        {
            // Arrange
            var include = new[] { "HttpMethods" };

            // Assert
            PropertiesAssert.PropertiesAreTheSame(
                typeof(ControllerActionDescriptor),
                typeof(ActionDescriptorValues),
                include: include);
        }
コード例 #6
0
        public void RouteConstraintProviderValues_IncludesAllProperties()
        {
            // Arrange
            var exclude = new[] { "TypeId" };

            // Assert
            PropertiesAssert.PropertiesAreTheSame(
                typeof(RouteConstraintAttribute),
                typeof(RouteConstraintProviderValues),
                exclude);
        }
コード例 #7
0
        public void ControllerModelValues_IncludesAllProperties()
        {
            // Arrange
            var exclude = new[] { "Application" };

            // Assert
            PropertiesAssert.PropertiesAreTheSame(
                typeof(ControllerModel),
                typeof(ControllerModelValues),
                exclude);
        }
コード例 #8
0
        public void ActionModelValues_IncludesAllProperties()
        {
            // Arrange
            var exclude = new[] { "Controller", "Attributes", "IsActionNameMatchRequired" };

            // Assert
            PropertiesAssert.PropertiesAreTheSame(
                typeof(ActionModel),
                typeof(ActionModelValues),
                exclude);
        }