Skip to content

Commit

Permalink
Fix naming mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulhsn committed Oct 31, 2024
1 parent 1d59712 commit f434e56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DynamicVNET.Lib.Integration.Tests/ValidatorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void IsValid_WhenGivenInvalidObjectWithEmptyProperties_ReturnsFalse()
}

[Fact]
public void IsValid_WhenGivenInvalidObjectForGreatherThanMethod_ReturnsFalse()
public void IsValid_WhenGivenInvalidObjectForGreaterThanMethod_ReturnsFalse()
{
// Act
UserStub userInstance = new UserStub()
Expand Down
20 changes: 10 additions & 10 deletions DynamicVNET.Lib/TypeRuleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public static ITypeRuleMarker<T> GreaterThan<T>(this ITypeRuleMarker<T> builder,
errorMessage = errorMessage ?? $"Value of the instance should greather than {minValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.GreaterThan(expMember, minValue, errorMessage);
}, nameof(Range));
}, nameof(GreaterThan));
return builder;
}

Expand All @@ -309,7 +309,7 @@ public static ITypeRuleMarker<T> LessThan<T>(this ITypeRuleMarker<T> builder, Ex
errorMessage = errorMessage ?? $"Value of the instance should less than {maxValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.LessThan(expMember, maxValue, errorMessage);
}, nameof(Range));
}, nameof(LessThan));
return builder;
}

Expand All @@ -329,7 +329,7 @@ public static ITypeRuleMarker<T> GreaterThan<T>(this ITypeRuleMarker<T> builder,
errorMessage = errorMessage ?? $"Value of the instance should greather than {minValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.GreaterThan(expMember, minValue, errorMessage);
}, nameof(Range));
}, nameof(GreaterThan));
return builder;
}

Expand All @@ -348,7 +348,7 @@ public static ITypeRuleMarker<T> LessThan<T>(this ITypeRuleMarker<T> builder, Ex
errorMessage = errorMessage ?? $"Value of the instance should less than {maxValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.LessThan(expMember, maxValue, errorMessage);
}, nameof(Range));
}, nameof(LessThan));
return builder;
}

Expand All @@ -367,7 +367,7 @@ public static ITypeRuleMarker<T> GreaterThan<T>(this ITypeRuleMarker<T> builder,
errorMessage = errorMessage ?? $"Value of the instance should greather than {minValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.GreaterThan(expMember, minValue, errorMessage);
}, nameof(Range));
}, nameof(GreaterThan));
return builder;
}

Expand All @@ -386,7 +386,7 @@ public static ITypeRuleMarker<T> LessThan<T>(this ITypeRuleMarker<T> builder, Ex
errorMessage = errorMessage ?? $"Value of the instance should less than {maxValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.LessThan(expMember, maxValue, errorMessage);
}, nameof(Range));
}, nameof(LessThan));
return builder;
}

Expand All @@ -405,7 +405,7 @@ public static ITypeRuleMarker<T> GreaterThan<T>(this ITypeRuleMarker<T> builder,
errorMessage = errorMessage ?? $"Value of the instance should greather than {minValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.GreaterThan(expMember, minValue, errorMessage);
}, nameof(Range));
}, nameof(GreaterThan));
return builder;
}

Expand All @@ -424,7 +424,7 @@ public static ITypeRuleMarker<T> LessThan<T>(this ITypeRuleMarker<T> builder, Ex
errorMessage = errorMessage ?? $"Value of the instance should less than {maxValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.LessThan(expMember, maxValue, errorMessage);
}, nameof(Range));
}, nameof(LessThan));
return builder;
}

Expand All @@ -443,7 +443,7 @@ public static ITypeRuleMarker<T> GreaterThan<T>(this ITypeRuleMarker<T> builder,
errorMessage = errorMessage ?? $"Value of the instance should greather than {minValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.GreaterThan(expMember, minValue, errorMessage);
}, nameof(Range));
}, nameof(GreaterThan));
return builder;
}

Expand All @@ -462,7 +462,7 @@ public static ITypeRuleMarker<T> LessThan<T>(this ITypeRuleMarker<T> builder, Ex
errorMessage = errorMessage ?? $"Value of the instance should less than {maxValue}";
var expMember = ExpressionMemberFactory.Create(member);
builder.LessThan(expMember, maxValue, errorMessage);
}, nameof(Range));
}, nameof(LessThan));
return builder;
}
}
Expand Down

0 comments on commit f434e56

Please sign in to comment.