Skip to content

Commit 8ee042e

Browse files
authored
feat: update rules.framework Operators.NotIn and integration tests
1 parent 6396641 commit 8ee042e

6 files changed

Lines changed: 16 additions & 4 deletions

File tree

src/Rules.Framework.Providers.InMemory/Rules.Framework.Providers.InMemory.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3737
</PackageReference>
3838
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.1.1" />
39-
<PackageReference Include="Rules.Framework" Version="1.7.3" />
39+
<PackageReference Include="Rules.Framework" Version="1.7.4" />
4040
</ItemGroup>
4141
</Project>

src/Rules.Framework.Providers.MongoDb/Rules.Framework.Providers.MongoDb.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
</PackageReference>
3838
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
3939
<PackageReference Include="MongoDB.Driver" Version="2.13.1" />
40-
<PackageReference Include="Rules.Framework" Version="1.7.3" />
40+
<PackageReference Include="Rules.Framework" Version="1.7.4" />
4141
</ItemGroup>
4242
</Project>

src/Rules.Framework.WebUI/Rules.Framework.WebUI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</ItemGroup>
4848

4949
<ItemGroup>
50-
<PackageReference Include="Rules.Framework" Version="1.7.3" />
50+
<PackageReference Include="Rules.Framework" Version="1.7.4" />
5151
</ItemGroup>
5252

5353
<ItemGroup>

tests/Rules.Framework.Providers.InMemory.IntegrationTests/Tests/Scenario5/BestServerTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ public async Task BestServer_InEvaluation(IEnumerable<Condition<BestServerCondit
101101
.WithComparisonOperator(Operators.In)
102102
.SetOperand(new[] { 12, 16, 24, 36 })
103103
.Build())
104+
.AddCondition(x2 =>
105+
x2.AsValued(BestServerConditions.Memory)
106+
.OfDataType<IEnumerable<int>>()
107+
.WithComparisonOperator(Operators.NotIn)
108+
.SetOperand(new[] { 4, 8 })
109+
.Build())
104110
.AddCondition(x2 =>
105111
x2.AsValued(BestServerConditions.StoragePartionable)
106112
.OfDataType<IEnumerable<bool>>()

tests/Rules.Framework.Providers.MongoDb.IntegrationTests/Tests/Scenaro5/BestServerTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ public async Task BestServer_InEvaluation(IEnumerable<Condition<BestServerCondit
111111
.WithComparisonOperator(Operators.In)
112112
.SetOperand(new[] { 12, 16, 24, 36 })
113113
.Build())
114+
.AddCondition(x2 =>
115+
x2.AsValued(BestServerConditions.Memory)
116+
.OfDataType<IEnumerable<int>>()
117+
.WithComparisonOperator(Operators.NotIn)
118+
.SetOperand(new[] { 4, 8 })
119+
.Build())
114120
.AddCondition(x2 =>
115121
x2.AsValued(BestServerConditions.StoragePartionable)
116122
.OfDataType<IEnumerable<bool>>()

tests/Rules.Framework.WebUI.Tests/Rules.Framework.WebUI.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
1313
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
1414
<PackageReference Include="Moq" Version="4.16.1" />
15-
<PackageReference Include="Rules.Framework" Version="1.7.3" />
15+
<PackageReference Include="Rules.Framework" Version="1.7.4" />
1616
<PackageReference Include="xunit" Version="2.4.1" />
1717
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1818
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)