diff --git a/RxBlazorLightCoreTestBase/ServiceFixture.State.cs b/RxBlazorLightCoreTestBase/ServiceFixture.State.cs index 6c7b306..d8aeba1 100644 --- a/RxBlazorLightCoreTestBase/ServiceFixture.State.cs +++ b/RxBlazorLightCoreTestBase/ServiceFixture.State.cs @@ -58,20 +58,20 @@ public async Task IncrementStateAsyncC(IState state) await IntCommandAsync.ExecuteAsync(async c => { await Task.Delay(10, c.CancellationToken); state.Value++; }); } - public void ValueChanging(TestEnum testEnum) + public void ValueChanging(TestEnum oldValue, TestEnum newValue) { - if (EnumStateGroup.Value != testEnum) + if (oldValue != newValue) { - EnumStateGroupOldValue = EnumStateGroup.Value; + EnumStateGroupOldValue = oldValue; } } - public async Task ValueChangingAsync(TestEnum testEnum) + public async Task ValueChangingAsync(TestEnum oldValue, TestEnum newValue) { await Task.Delay(100); - if (EnumStateGroupAsync.Value != testEnum) + if (oldValue != newValue) { - EnumStateGroupAsyncOldValue = EnumStateGroupAsync.Value; + EnumStateGroupAsyncOldValue = oldValue; } } diff --git a/RxBlazorLightCoreTestBase/ServiceFixture.cs b/RxBlazorLightCoreTestBase/ServiceFixture.cs index ec358b7..ebbb220 100644 --- a/RxBlazorLightCoreTestBase/ServiceFixture.cs +++ b/RxBlazorLightCoreTestBase/ServiceFixture.cs @@ -43,8 +43,8 @@ public ServiceFixture() CRUDListCommand = this.CreateStateCommandAsync(true); CRUDDictCommand = this.CreateStateCommandAsync(true); - EnumStateGroup = this.CreateStateGroup([TestEnum.ONE, TestEnum.TWO, TestEnum.THREE], TestEnum.ONE, ValueChanging, i => i == 1); - EnumStateGroupAsync = this.CreateStateGroupAsync([TestEnum.ONE, TestEnum.TWO, TestEnum.THREE], TestEnum.ONE, ValueChangingAsync, i => i == 1); + EnumStateGroup = this.CreateStateGroup([TestEnum.ONE, TestEnum.TWO, TestEnum.THREE], TestEnum.ONE, i => i == 1); + EnumStateGroupAsync = this.CreateStateGroupAsync([TestEnum.ONE, TestEnum.TWO, TestEnum.THREE], TestEnum.ONE, i => i == 1); } } } diff --git a/RxBlazorLightCoreTests/StateTests.cs b/RxBlazorLightCoreTests/StateTests.cs index 82cce32..3a1de24 100644 --- a/RxBlazorLightCoreTests/StateTests.cs +++ b/RxBlazorLightCoreTests/StateTests.cs @@ -652,7 +652,7 @@ public void TestStateGroupSync() } }); - fixture.EnumStateGroup.ChangeValue(TestEnum.THREE); + fixture.EnumStateGroup.ChangeValue(TestEnum.THREE, fixture.ValueChanging); while (!done) ; Assert.Equal(TestEnum.THREE, fixture.EnumStateGroup.Value); Assert.Equal(TestEnum.ONE, fixture.EnumStateGroupOldValue); @@ -684,7 +684,7 @@ public async Task TestStateGroupAsync() } }); - await fixture.EnumStateGroupAsync.ChangeValueAsync(TestEnum.THREE); + await fixture.EnumStateGroupAsync.ChangeValueAsync(TestEnum.THREE, fixture.ValueChangingAsync); while (!done) ; Assert.Equal(TestEnum.THREE, fixture.EnumStateGroupAsync.Value); diff --git a/RxMudBlazorLight/RxMudBlazorLight.csproj b/RxMudBlazorLight/RxMudBlazorLight.csproj index d4a67c3..0ac2f3f 100644 --- a/RxMudBlazorLight/RxMudBlazorLight.csproj +++ b/RxMudBlazorLight/RxMudBlazorLight.csproj @@ -20,7 +20,7 @@ Blazor,MudBlazor,Rx,Reactive true ..\Nuget - 0.6.9 + 0.7.0