Skip to content

Handle change of detail requests where nothing is changed

047bc4a
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Handle change of detail requests where nothing is changed #3401

Handle change of detail requests where nothing is changed
047bc4a
Select commit
Loading
Failed to load commit list.
GitHub Actions / WebCommon.Tests test results succeeded May 20, 2026 in 1s

57 passed, 0 failed and 0 skipped

Tests passed successfully

✅ TeachingRecordSystem/tests/TeachingRecordSystem.WebCommon.Tests/TestResults/_runnervm9vjqi_2026-05-20_08_44_35_net10.0.trx

57 tests were completed in 6s with 57 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
TeachingRecordSystem.WebCommon.Tests.FormFlow.EndToEndTests 5✅ 110ms
TeachingRecordSystem.WebCommon.Tests.FormFlow.JourneyInstanceIdTests 16✅ 143ms
TeachingRecordSystem.WebCommon.Tests.FormFlow.JourneyInstanceProviderTests 28✅ 338ms
TeachingRecordSystem.WebCommon.Tests.FormFlow.JourneyInstanceTests 4✅ 240ms
TeachingRecordSystem.WebCommon.Tests.FormFlow.MissingInstanceActionFilterTests 4✅ 75ms

✅ TeachingRecordSystem.WebCommon.Tests.FormFlow.EndToEndTests

✅ Complete_DoesAllowStateToBeReadSubsequently
✅ Complete_DoesNotAllowStateToBeUpdatedSubsequently
✅ Delete_ReturnsOk
✅ ReadState_ReturnsState
✅ UpdateState_UpdatesStateAndRedirects

✅ TeachingRecordSystem.WebCommon.Tests.FormFlow.JourneyInstanceIdTests

✅ Create_DependentKeyFoundWithoutUniqueKey_ReturnsCorrectInstance
✅ Create_DependentKeyFoundWithUniqueKey_ReturnsCorrectInstance
✅ Create_MissingKey_ThrowsInvalidOperationException
✅ Create_NoDependentKeysWithoutUniqueKey_ReturnsCorrectInstance
✅ Create_NoDependentKeysWithUniqueKey_ReturnsCorrectInstance
✅ Create_OptionalDependentKeyFound_ReturnsCorrectInstance
✅ Create_OptionalDependentKeyNotFound_ReturnsCorrectInstance
✅ Create_UniqueKeyAlreadyInKeys_ReturnsInstanceWithNewUniqueKey
✅ TryResolve_DependentKeyFoundWithoutUniqueKey_ReturnsCorrectInstance
✅ TryResolve_DependentKeyFoundWithUniqueKey_ReturnsCorrectInstance
✅ TryResolve_MissingDependentRouteDataKey_ReturnsFalse
✅ TryResolve_MissingUniqueKey_ReturnsFalse
✅ TryResolve_NoDependentKeysWithoutUniqueKey_ReturnsCorrectInstance
✅ TryResolve_NoDependentKeysWithUniqueKey_ReturnsCorrectInstance
✅ TryResolve_OptionalDependentKeyFound_ReturnsCorrectInstance
✅ TryResolve_OptionalDependentKeyNotFound_ReturnsCorrectInstance

✅ TeachingRecordSystem.WebCommon.Tests.FormFlow.JourneyInstanceProviderTests

✅ CreateInstanceAsync_ActionHasNoMetadata_ThrowsInvalidOperationException
✅ CreateInstanceAsync_CreatesInstanceInStateStore
✅ CreateInstanceAsync_InstanceAlreadyExists_ThrowsInvalidOperationException
✅ CreateInstanceAsync_StateTypeIsIncompatible_ThrowsInvalidOperationException
✅ CreateInstanceOfT_StateTypeIsIncompatible_ThrowsInvalidOperationException
✅ GetInstanceAsync_ActionHasNoMetadata_ThrowsInvalidOperationException
✅ GetInstanceAsync_InstanceDoesExist_ReturnsInstance
✅ GetInstanceAsync_InstanceDoesNotExist_ReturnsNull
✅ GetInstanceOfT_StateTypeIsIncompatible_ThrowsInvalidOperationException
✅ GetOrCreateInstanceAsync_ActionHasNoMetadata_ThrowsInvalidOperationException
✅ GetOrCreateInstanceAsync_CreateStateStateTypeIsIncompatible_ThrowsInvalidOperationException
✅ GetOrCreateInstanceAsync_InstanceDoesExist_ReturnsExistingInstance
✅ GetOrCreateInstanceAsync_InstanceDoesNotExist_CreatesInstanceInStateStore
✅ GetOrCreateInstanceFfT_RequestedStateTypeIsIncompatible_ThrowsInvalidOperationException
✅ GetOrCreateInstanceOfT_CreateStateStateTypeIsIncompatible_ThrowsInvalidOperationException
✅ IsCurrentInstance_DifferentInstanceToCurrent_ReturnsFalse
✅ IsCurrentInstance_InstanceMatches_ReturnsTrue
✅ IsCurrentInstance_NoCurrentInstance_ReturnsFalse
✅ ResolveCurrentInstanceAsync_ActionHasNoMetadata_ReturnsNull
✅ ResolveCurrentInstanceAsync_CannotExtractIdForRandomId_ReturnsNull
✅ ResolveCurrentInstanceAsync_CannotExtractIdForRouteValues_ReturnsNull
✅ ResolveCurrentInstanceAsync_InstanceDoesNotExistInStateStore_ReturnsNull
✅ ResolveCurrentInstanceAsync_InstanceExistsForRandomId_ReturnsInstance
✅ ResolveCurrentInstanceAsync_InstanceExistsForRouteValues_ReturnsInstance
✅ ResolveCurrentInstanceAsync_InstanceIsDeleted_ReturnsFalse
✅ ResolveCurrentInstanceAsync_MismatchingJourneyNames_ReturnsNull
✅ ResolveCurrentInstanceAsync_MismatchingStateType_ReturnsNull
✅ ResolveCurrentInstanceAsync_ReturnsSameObjectWithinSameRequest

✅ TeachingRecordSystem.WebCommon.Tests.FormFlow.JourneyInstanceTests

✅ CompleteAsync_CallsDeleteOnStateProvider
✅ DeleteAsync_CallsDeleteOnStateProvider
✅ UpdateStateAsync_CallsUpdateStateOnStateProvider
✅ UpdateStateAsync_DeletedInstance_ThrowsInvalidOperationException

✅ TeachingRecordSystem.WebCommon.Tests.FormFlow.MissingInstanceActionFilterTests

✅ RequireJourneyInstanceSpecifiedButNoActiveInstance_ReturnsNotFound
✅ RequireJourneyInstanceSpecifiedButNoMetadata_Throws
✅ RequireJourneyInstanceSpecifiedWithActiveInstance_ReturnsOk
✅ RequireJourneyInstanceSpecifiedWithOverridenStatusCodeButNoActiveInstance_ReturnsStatusCode