Skip to content

Commit

Permalink
Merge pull request #134 from portyanikhin/dependabot/nuget/csharpier-…
Browse files Browse the repository at this point in the history
…0.27.0

Bump csharpier from 0.26.7 to 0.27.0
  • Loading branch information
portyanikhin authored Jan 16, 2024
2 parents 0520e5f + e7bd36d commit 5f1bc6e
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.26.7",
"version": "0.27.0",
"commands": [
"dotnet-csharpier"
]
Expand Down
6 changes: 2 additions & 4 deletions src/VCRC/Fluids/Validators/RefrigerantTypeValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ internal class RefrigerantTypeValidator : AbstractValidator<IRefrigerant>
{
public RefrigerantTypeValidator() =>
RuleFor(refrigerant => refrigerant)
.Must(
refrigerant =>
refrigerant.IsSingleComponent
|| refrigerant.IsAzeotropicBlend
.Must(refrigerant =>
refrigerant.IsSingleComponent || refrigerant.IsAzeotropicBlend
)
.WithMessage(
"Refrigerant should be "
Expand Down
6 changes: 2 additions & 4 deletions src/VCRC/Validators/VCRCWithEconomizerAndPCValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ public VCRCWithEconomizerAndPCValidator()
.WithMessage(
"Wrong temperature difference at the economizer 'hot' side!"
);
RuleFor(
vcrc =>
vcrc.Point7.Temperature
+ vcrc.Economizer.TemperatureDifference
RuleFor(vcrc =>
vcrc.Point7.Temperature + vcrc.Economizer.TemperatureDifference
)
.LessThan(vcrc => vcrc.Point6.Temperature)
.WithMessage(
Expand Down
6 changes: 2 additions & 4 deletions src/VCRC/Validators/VCRCWithEconomizerAndTPIValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ internal class VCRCWithEconomizerAndTPIValidator
{
public VCRCWithEconomizerAndTPIValidator()
{
RuleFor(
vcrc =>
vcrc.Point6.Temperature
+ vcrc.Economizer.TemperatureDifference
RuleFor(vcrc =>
vcrc.Point6.Temperature + vcrc.Economizer.TemperatureDifference
)
.LessThan(vcrc => vcrc.Point5.Temperature)
.WithMessage(
Expand Down
6 changes: 2 additions & 4 deletions src/VCRC/Validators/VCRCWithEconomizerValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ public VCRCWithEconomizerValidator()
.WithMessage(
"Wrong temperature difference at the economizer 'hot' side!"
);
RuleFor(
vcrc =>
vcrc.Point6.Temperature
+ vcrc.Economizer.TemperatureDifference
RuleFor(vcrc =>
vcrc.Point6.Temperature + vcrc.Economizer.TemperatureDifference
)
.LessThan(vcrc => vcrc.Point5.Temperature)
.WithMessage(
Expand Down
6 changes: 2 additions & 4 deletions src/VCRC/Validators/VCRCWithEjectorAndEconomizerValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ public VCRCWithEjectorAndEconomizerValidator()
.WithMessage(
"Wrong temperature difference at the economizer 'hot' side!"
);
RuleFor(
vcrc =>
vcrc.Point6.Temperature
+ vcrc.Economizer.TemperatureDifference
RuleFor(vcrc =>
vcrc.Point6.Temperature + vcrc.Economizer.TemperatureDifference
)
.LessThan(vcrc => vcrc.Point5.Temperature)
.WithMessage(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ public VCRCWithEjectorEconomizerAndPCValidator()
.WithMessage(
"Wrong temperature difference at the economizer 'hot' side!"
);
RuleFor(
vcrc =>
vcrc.Point7.Temperature
+ vcrc.Economizer.TemperatureDifference
RuleFor(vcrc =>
vcrc.Point7.Temperature + vcrc.Economizer.TemperatureDifference
)
.LessThan(vcrc => vcrc.Point6.Temperature)
.WithMessage(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ internal class VCRCWithEjectorEconomizerAndTPIValidator
{
public VCRCWithEjectorEconomizerAndTPIValidator()
{
RuleFor(
vcrc =>
vcrc.Point6.Temperature
+ vcrc.Economizer.TemperatureDifference
RuleFor(vcrc =>
vcrc.Point6.Temperature + vcrc.Economizer.TemperatureDifference
)
.LessThan(vcrc => vcrc.Point5.Temperature)
.WithMessage(
Expand Down
6 changes: 2 additions & 4 deletions src/VCRC/Validators/VCRCWithRecuperatorValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ internal class VCRCWithRecuperatorValidator
{
public VCRCWithRecuperatorValidator()
{
RuleFor(
vcrc =>
vcrc.Point4.Temperature
- vcrc.Recuperator.TemperatureDifference
RuleFor(vcrc =>
vcrc.Point4.Temperature - vcrc.Recuperator.TemperatureDifference
)
.GreaterThan(vcrc => vcrc.Point1.Temperature)
.WithMessage(
Expand Down

0 comments on commit 5f1bc6e

Please sign in to comment.