Skip to content

Closes #10. Analysers for writing Service Classes. #59

Closes #10. Analysers for writing Service Classes.

Closes #10. Analysers for writing Service Classes. #59

GitHub Actions / All Tests failed Oct 10, 2023 in 0s

All Tests ❌

Tests failed

Report Passed Failed Skipped Time
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_21.trx 144✔️ 3s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_24.trx 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_25.trx 7s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_28.trx 82✔️ 7s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_29.trx 3s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_31.trx 13✔️ 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_34.trx 40✔️ 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_34[1].trx 22✔️ 3s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_37.trx 11✔️ 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_39.trx 11✔️ 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_43.trx 25✔️ 3s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_49.trx 113✔️ 16s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_57.trx 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_00.trx 5s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_02.trx 29✔️ 1❌ 6s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_04.trx 3s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_06.trx 5✔️ 3s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_07.trx 3s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_08.trx 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_10.trx 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_11.trx 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_13.trx 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_14.trx 2s
src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_15.trx 2s

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_21.trx

144 tests were completed in 3s with 144 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Common.UnitTests.Extensions.CollectionExtensionsSpec 3✔️ 3ms
Common.UnitTests.Extensions.DateTimeExtensionsSpec 21✔️ 41ms
Common.UnitTests.Extensions.DictionaryExtensionsSpec 5✔️ 26ms
Common.UnitTests.Extensions.EnumExtensionsSpec 10✔️ 16ms
Common.UnitTests.Extensions.StringExtensionsSpec 36✔️ 81ms
Common.UnitTests.OptionalSpec 24✔️ 22ms
Common.UnitTests.ResultSpec+ResultWithoutValueSpec 14✔️ 147ms
Common.UnitTests.ResultSpec+ResultWithValueSpec 31✔️ 11ms

✔️ Common.UnitTests.Extensions.CollectionExtensionsSpec

✔️ WhenContainsIgnoreCaseAndEmptyCollection_ThenReturnsFalse
✔️ WhenContainsIgnoreCaseAndMatches_ThenReturnsTrue
✔️ WhenContainsIgnoreCaseAndNoMatches_ThenReturnsFalse

✔️ Common.UnitTests.Extensions.DateTimeExtensionsSpec

✔️ WhenFromIso8601AndEmptyValue_ThenReturnsMinDate
✔️ WhenFromIso8601AndISO8601Local_ThenReturnsUtcDate
✔️ WhenFromIso8601AndISO8601UtcWithMillionths_ThenReturnsUtcDate
✔️ WhenFromIso8601AndISO8601UtcWithNoMilliseconds_ThenReturnsUtcDate
✔️ WhenFromIso8601AndNotISO8601_ThenReturnsMinDate
✔️ WhenFromIso8601AndNullValue_ThenReturnsMinDate
✔️ WhenFromIso8601AndOtherFormat_ThenReturnsMinDate
✔️ WhenFromUnixTimestampWithFutureDateInSeconds_ThenReturnsDate
✔️ WhenFromUnixTimestampWithNowInSeconds_ThenReturnsDate
✔️ WhenFromUnixTimestampWithNull_ThenReturnsMinDate
✔️ WhenFromUnixTimestampWithPastDateInSeconds_ThenReturnsDate
✔️ WhenFromUnixTimestampWithZero_ThenReturnsUnixEpoch
✔️ WhenToIso8601WithLocalTime_ThenReturnsUtcTime
✔️ WhenToIso8601WithNull_ThenReturnsEmpty
✔️ WhenToIso8601WithUniversalTime_ThenReturnsUtcTime
✔️ WhenToUnixMilliSecondsWithLocalTime_ThenReturnsUtcTime
✔️ WhenToUnixMilliSecondsWithNull_ThenReturnsZero
✔️ WhenToUnixMilliSecondsWithUniversalTime_ThenReturnsUtcTime
✔️ WhenToUnixSecondsWithLocalTime_ThenReturnsUtcTime
✔️ WhenToUnixSecondsWithNull_ThenReturnsZero
✔️ WhenToUnixSecondsWithUniversalTime_ThenReturnsUtcTime

✔️ Common.UnitTests.Extensions.DictionaryExtensionsSpec

✔️ WhenMergeAndOtherIsEmpty_ThenNothingAdded
✔️ WhenMergeAndSourceAndOtherHaveSameKeys_ThenSourceRemains
✔️ WhenMergeAndSourceAndOtherHaveUniqueKeys_ThenOtherAdded
✔️ WhenMergeAndSourceAndOtherIsEmpty_ThenContainsNothing
✔️ WhenMergeAndSourceIsEmpty_ThenOtherAdded

✔️ Common.UnitTests.Extensions.EnumExtensionsSpec

✔️ WhenToEnumAndEmpty_ThenThrows
✔️ WhenToEnumAndHasSameOption_ThenReturnsOption
✔️ WhenToEnumAndMatches_ThenReturnsMatched
✔️ WhenToEnumAndMissingOptionInTarget_ThenThrows
✔️ WhenToEnumAndNotMatches_ThenThrows
✔️ WhenToEnumOrDefaultAndEmpty_ThenReturnsDefault
✔️ WhenToEnumOrDefaultAndMatches_ThenReturnsMatched
✔️ WhenToEnumOrDefaultAndNotMatches_ThenReturnsDefault
✔️ WhenToEnumOrDefaultAndOptionNotExistsInTarget_ThenReturnsDefault
✔️ WhenToEnumOrDefaultAndSameOption_ThenReturnsOption

✔️ Common.UnitTests.Extensions.StringExtensionsSpec

✔️ WhenHasValueAndEmpty_ThenReturnsFalse
✔️ WhenHasValueAndHasValue_ThenReturnsTrue
✔️ WhenHasValueAndNull_ThenReturnsFalse
✔️ WhenHasValueAndOnlyWhitespace_ThenReturnsFalse
✔️ WhenIsMatchAndMatches_ThenReturnsTrue
✔️ WhenIsMatchAndNotMatches_ThenReturnsFalse
✔️ WhenIsMatchWithEmpty_ThenReturnsFalse
✔️ WhenIsMatchWithEmptyAndEmptyPattern_ThenReturnsTrue
✔️ WhenIsMatchWithNull_ThenReturnsFalse
✔️ WhenIsMatchWithNullPattern_ThenReturnsFalse
✔️ WhenReplaceWithEmpty_ThenReturnsEmpty
✔️ WhenReplaceWithEmptyAndEmptyPattern_ThenReturnsInput
✔️ WhenReplaceWithMatches_ThenReturnsReplaced
✔️ WhenReplaceWithNoMatches_ThenReturnsInput
✔️ WhenReplaceWithNull_ThenReturnsNull
✔️ WhenReplaceWithNullPattern_ThenReturnsInput
✔️ WhenToBoolAndEmpty_ThenReturnsFalse
✔️ WhenToBoolAndMatchesLowercase_ThenReturnsTrue
✔️ WhenToBoolAndMatchesMixedcase_ThenReturnsTrue
✔️ WhenToBoolAndMatchesUppercase_ThenReturnsTrue
✔️ WhenToBoolAndNotMatches_ThenThrows
✔️ WhenToBoolOrDefaultAndEmpty_ThenReturnsDefault
✔️ WhenToBoolOrDefaultAndMatchesLowercase_ThenReturnsMatched
✔️ WhenToBoolOrDefaultAndMatchesMixedcase_ThenReturnsMatched
✔️ WhenToBoolOrDefaultAndMatchesUppercase_ThenReturnsMatched
✔️ WhenToBoolOrDefaultAndNotMatches_ThenReturnsDefault
✔️ WhenToIntAndEmpty_ThenReturnsMinusOne
✔️ WhenToIntAndMatchesLowercase_ThenReturnsTrue
✔️ WhenToIntAndNotMatches_ThenThrows
✔️ WhenToIntOrDefaultAndEmpty_ThenReturnsDefault
✔️ WhenToIntOrDefaultAndNotMatches_ThenReturnsDefault
✔️ WhenToJsonAndCamelCase_ThenReturnsJsonPrettyPrintedWithNoNullsInCamel
✔️ WhenToJsonAndDefaults_ThenReturnsJsonPrettyPrintedWithNoNullsInPascal
✔️ WhenToJsonAndIncludeNulls_ThenReturnsJsonPrettyPrintedWithNullsInPascal
✔️ WhenToJsonAndNotPretty_ThenReturnsJsonWithNoNullsInPascal
✔️ WhenToJsonAndNull_ThenReturnsNull

✔️ Common.UnitTests.OptionalSpec

✔️ WhenConstructedWithAnyValue_ThenHasValue
✔️ WhenConstructedWithNullInstance_ThenHasNoValue
✔️ WhenConstructedWithoutAnyValue_ThenHasNoValue
✔️ WhenEqualsOperatorOptionalOfInstance_ThenReturnsTrue
✔️ WhenEqualsOperatorWithEmptyOptionalAndWithNone_ThenReturnsTrue
✔️ WhenEqualsOperatorWithEmptyOptionalOfSameType_ThenReturnsFalse
✔️ WhenEqualsOperatorWithEmptyOptionals_ThenReturnsTrue
✔️ WhenEqualsOperatorWithNoneAndWithNone_ThenReturnsTrue
✔️ WhenEqualsOperatorWithNull_ThenReturnsFalse
✔️ WhenEqualsOperatorWithSameOptionals_ThenReturnsTrue
✔️ WhenEqualsOptionalOfInstance_ThenReturnsTrue
✔️ WhenEqualsWithEmptyOptionalOfSameType_ThenReturnsFalse
✔️ WhenEqualsWithNull_ThenReturnsFalse
✔️ WhenGetValue_ThenReturnsValue
✔️ WhenGetValueAndNullInstance_ThenThrows
✔️ WhenGetValueOrDefault_ThenReturnsValue
✔️ WhenGetValueOrDefaultAndNullInstance_ThenReturnsNull
✔️ WhenNotEqualsOperatorOptionalOfInstance_ThenReturnsFalse
✔️ WhenNotEqualsOperatorWithEmptyOptionalOfSameType_ThenReturnsTrue
✔️ WhenNotEqualsOperatorWithNull_ThenReturnsTrue
✔️ WhenObjectEqualsBetweenEmptyOptionalAndInstanceOfSameType_ThenReturnsFalse
✔️ WhenObjectEqualsBetweenNullOptionalAndInstance_ThenReturnsFalse
✔️ WhenObjectEqualsBetweenOptionalOfInstanceAndOptionalOfInstance_ThenReturnsTrue
✔️ WhenObjectEqualsBetweenOptionOfInstanceAndInstance_ThenReturnsTrue

✔️ Common.UnitTests.ResultSpec+ResultWithoutValueSpec

✔️ WhenBitwiseAndingResultsThatAreBothSuccessful_ThenReturnsTrue
✔️ WhenBitwiseAndResultsThatAreNotBothSuccessful_ThenReturnsFalse
✔️ WhenCastAnyErrorToResultOfThatError_ThenReturnsResultOfThatError
✔️ WhenConstructedWithAnyError_ThenInitialized
✔️ WhenConstructedWithNoValue_ThenInitialized
✔️ WhenFromErrorWithError_ThenReturnsResultOfError
✔️ WhenGetError_ThenReturnsValue
✔️ WhenGetErrorAndNotFaulted_ThenThrows
✔️ WhenMatchAndNotSuccessful_ThenReturnsTheError
✔️ WhenMatchAndSuccessful_ThenReturnsTrue
✔️ WhenToStringAndFaulted_ThenReturnsErrorRepresentation
✔️ WhenToStringAndNotFaulted_ThenReturnsValueRepresentation
✔️ WhenTryGetErrorAndIsFaulted_ThenReturnsTrue
✔️ WhenTryGetErrorAndIsNotFaulted_ThenReturnsFalse

✔️ Common.UnitTests.ResultSpec+ResultWithValueSpec

✔️ WhenBitwiseAndingResultsThatAreBothSuccessful_ThenReturnsTrue
✔️ WhenBitwiseAndResultsThatAreNotBothSuccessful_ThenReturnsFalse
✔️ WhenCastAnyErrorToResultOfThatError_ThenReturnsResultOfThatError
✔️ WhenCastAnyResultOfValueToTypeOfValue_ThenReturnsValue
✔️ WhenCastAnyValueToResultOfThatValue_ThenReturnsResultOfThatValue
✔️ WhenConstructedWithAnyError_ThenInitialized
✔️ WhenConstructedWithAnyOptionalValue_ThenInitialized
✔️ WhenConstructedWithAnyScalarValue_ThenInitialized
✔️ WhenConstructedWithEmptyOptionalValue_ThenInitialized
✔️ WhenConstructedWithNullScalarValue_ThenInitialized
✔️ WhenExistsAndFaulted_ThenReturnsFalse
✔️ WhenExistsAndNotFaultedWithNull_ThenReturnsFalse
✔️ WhenExistsAndNotFaultedWithValue_ThenReturnsTrue
✔️ WhenFromErrorWithError_ThenReturnsResultOfError
✔️ WhenFromValueWithValue_ThenReturnsResultOfValue
✔️ WhenGetError_ThenReturnsValue
✔️ WhenGetErrorAndNotFaulted_ThenThrows
✔️ WhenGetValue_ThenReturnsValue
✔️ WhenGetValueAndFaulted_ThenThrows
✔️ WhenHasValueAndFaulted_ThenReturnsFalse
✔️ WhenHasValueAndNotFaultedWithNull_ThenReturnsFalse
✔️ WhenHasValueAndNotFaultedWithValue_ThenReturnsTrue
✔️ WhenMatchAndNotSuccessful_ThenReturnsTheError
✔️ WhenMatchAndSuccessfulContainingNonNullValue_ThenReturnsTheOptionalValue
✔️ WhenMatchAndSuccessfulContainingNullValue_ThenReturnsOptionalNone
✔️ WhenToStringAndFaulted_ThenReturnsErrorRepresentation
✔️ WhenToStringAndNotFaulted_ThenReturnsValueRepresentation
✔️ WhenTryGetErrorAndIsFaulted_ThenReturnsTrue
✔️ WhenTryGetErrorAndIsNotFaulted_ThenReturnsFalse
✔️ WhenTryGetOutAndIsFaulted_ThenReturnsFalse
✔️ WhenTryGetOutAndIsNotFaulted_ThenReturnsTrue

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_24.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_25.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_28.trx

82 tests were completed in 7s with 82 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.WebApi.Common.UnitTests.AnonymousCallerContextSpec 2✔️ 3ms
Infrastructure.WebApi.Common.UnitTests.ContentNegotiationFilterSpec 11✔️ 705ms
Infrastructure.WebApi.Common.UnitTests.HasGetOptionsExtensionsSpec 6✔️ 5ms
Infrastructure.WebApi.Common.UnitTests.HasGetOptionsSpec 4✔️ 7ms
Infrastructure.WebApi.Common.UnitTests.HasSearchOptionsExtensionsSpec 9✔️ 108ms
Infrastructure.WebApi.Common.UnitTests.JsonDateTimeConverterSpec 6✔️ 27ms
Infrastructure.WebApi.Common.UnitTests.RequestCorrelationFilterSpec 3✔️ 89ms
Infrastructure.WebApi.Common.UnitTests.ServiceCollectionExtensionsSpec 5✔️ 26ms
Infrastructure.WebApi.Common.UnitTests.SubDomainModulesSpec 9✔️ 4s
Infrastructure.WebApi.Common.UnitTests.Validation.HasGetOptionsValidatorSpec 10✔️ 249ms
Infrastructure.WebApi.Common.UnitTests.Validation.HasSearchOptionsValidatorSpec 15✔️ 46ms
Infrastructure.WebApi.Common.UnitTests.ValidationBehaviorSpec 2✔️ 2s

✔️ Infrastructure.WebApi.Common.UnitTests.AnonymousCallerContextSpec

✔️ WhenConstructedAndHttpRequestHasCorrelationId_ThenSetsCallId
✔️ WhenConstructedAndHttpRequestHasNoCorrelationId_ThenFabricatesCallId

✔️ Infrastructure.WebApi.Common.UnitTests.ContentNegotiationFilterSpec

✔️ WhenInvokeAsyncWithIResultResponseAndFormatXml_ThenReturnsXml
✔️ WhenInvokeAsyncWithIValueHttpResultResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithNakedEmptyStringResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithNakedObjectResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithNakedObjectResponseAndAcceptXml_ThenReturnsXml
✔️ WhenInvokeAsyncWithNakedObjectResponseAndFormatXml_ThenReturnsXml
✔️ WhenInvokeAsyncWithNoContentResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithNullResponse_ThenReturnsNull
✔️ WhenInvokeAsyncWithNullValueIResultResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithOtherEmptyIResultResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithStreamResultResponse_ThenReturnsJsonContentAsOk

✔️ Infrastructure.WebApi.Common.UnitTests.HasGetOptionsExtensionsSpec

✔️ WhenToGetOptionsAndEmbedIsAll_ThenReturnsEnabled
✔️ WhenToGetOptionsAndEmbedIsCommaDelimitedResourceReferences_ThenReturnsChildResources
✔️ WhenToGetOptionsAndEmbedIsOff_ThenReturnsDisabled
✔️ WhenToGetOptionsAndEmbedIsUndefined_ThenReturnsExpandAll
✔️ WhenToGetOptionsAndEmbedIsUndefinedAndIsSearchOptions_ThenReturnsExpandNone
✔️ WhenToGetOptionsAndNullOptions_ThenReturnsNull

✔️ Infrastructure.WebApi.Common.UnitTests.HasGetOptionsSpec

✔️ WhenAll_ThenReturnsAll
✔️ WhenCustomWithMultipleResourceReferences_ThenReturnsChildResources
✔️ WhenCustomWithSingleResourceReference_ThenReturnsChildResources
✔️ WhenNone_ThenReturnsNone

✔️ Infrastructure.WebApi.Common.UnitTests.HasSearchOptionsExtensionsSpec

✔️ WhenToSearchOptionsAndAllUndefined_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndAllUndefinedWithDefaultMaxLimit_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndAllUndefinedWithDefaults_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndFilters_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndLimit_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndNoLimit_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndNullOptions_ThenReturnsNull
✔️ WhenToSearchOptionsAndSingleSort_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsWithDefaults_ThenReturnsSearchOptions

✔️ Infrastructure.WebApi.Common.UnitTests.JsonDateTimeConverterSpec

✔️ WhenReadAndIsNeitherStringNorNumber_ThenReturnsMinDate
✔️ WhenReadAndIsNumberAsUnixTimestamp_ThenReturnsDate
✔️ WhenReadAndIsStringAsISO8601Date_ThenReturnsDate
✔️ WhenReadAndIsStringWithInvalidDate_ThenReturnsMinDate
✔️ WhenWriteAndIso8601Format_ThenWriteUnixTimestamp
✔️ WhenWriteAndUnixTimestampFormat_ThenWriteUnixTimestamp

✔️ Infrastructure.WebApi.Common.UnitTests.RequestCorrelationFilterSpec

✔️ WhenInvokeAsyncAndInAnAcceptedRequestHeader_ThenUses
✔️ WhenInvokeAsyncAndInRequestPipeline_ThenUses
✔️ WhenInvokeAsyncAndNotInRequestPipelineAndNotInHeaders_ThenFabricatesNew

✔️ Infrastructure.WebApi.Common.UnitTests.ServiceCollectionExtensionsSpec

✔️ WhenAddValidatorBehaviors_ThenRegistersBehavior
✔️ WhenAddValidatorBehaviorsAndNoMatchingValidators_ThenRegistersNoBehaviors
✔️ WhenAddValidatorBehaviorsAndNoRegisteredValidators_ThenRegistersNoBehaviors
✔️ WhenAddValidatorBehaviorsAndNoRequestTypes_ThenRegistersNoBehaviors
✔️ WhenRegisterValidators_ThenRegistersInContainer

✔️ Infrastructure.WebApi.Common.UnitTests.SubDomainModulesSpec

✔️ WhenConfigureHost_ThenAppliedToAllModules
✔️ WhenConfigureHostAndNoModules_ThenAppliedToAllModules
✔️ WhenRegisterAndNullAggregatePrefixes_ThenThrows
✔️ WhenRegisterAndNullApiAssembly_ThenThrows
✔️ WhenRegisterAndNullMinimalApiRegistrationFunction_ThenThrows
✔️ WhenRegisterAndNullModule_ThenThrows
✔️ WhenRegisterAndNullRegisterServicesFunction_ThenRegisters
✔️ WhenRegisterServices_ThenAppliedToAllModules
✔️ WhenRegisterServicesAndNoModules_ThenAppliedToAllModules

✔️ Infrastructure.WebApi.Common.UnitTests.Validation.HasGetOptionsValidatorSpec

✔️ WhenAllPropertiesValid_ThenSucceeds
✔️ WhenEmbedContainsTooManyResources_ThenThrows
✔️ WhenEmbedIsChildLevelField_ThenSucceeds
✔️ WhenEmbedIsGrandChildLevelField_ThenSucceeds
✔️ WhenEmbedIsInvalidChildResourceReference_ThenThrows
✔️ WhenEmbedIsInvalidGrandChildResourceReference_ThenThrows
✔️ WhenEmbedIsInvalidResourceReference_ThenThrows
✔️ WhenEmbedIsNull_ThenSucceeds
✔️ WhenEmbedIsOff_ThenSucceeds
✔️ WhenEmbedIsTopLevelField_ThenSucceeds

✔️ Infrastructure.WebApi.Common.UnitTests.Validation.HasSearchOptionsValidatorSpec

✔️ WhenAllPropertiesValid_ThenSucceeds
✔️ WhenFilterIsInvalid_ThenThrows
✔️ WhenFilterIsNull_ThenSucceeds
✔️ WhenLimitIsGreaterThanMax_ThenThrows
✔️ WhenLimitIsLessThanMax_ThenSucceeds
✔️ WhenLimitIsLessThanMin_ThenThrows
✔️ WhenLimitIsMin_ThenSucceeds
✔️ WhenLimitIsNull_ThenSucceeds
✔️ WhenOffsetIsGreaterThanMax_ThenThrows
✔️ WhenOffsetIsLessThanMax_ThenSucceeds
✔️ WhenOffsetIsLessThanMin_ThenThrows
✔️ WhenOffsetIsMin_ThenSucceeds
✔️ WhenOffsetIsNull_ThenSucceeds
✔️ WhenSortIsInvalid_ThenThrows
✔️ WhenSortIsNull_ThenSucceeds

✔️ Infrastructure.WebApi.Common.UnitTests.ValidationBehaviorSpec

✔️ WhenHandleAndValidatorFails_ThenReturnsBadRequest
✔️ WhenHandleAndValidatorPasses_ThenExecutesMiddleware

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_29.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_31.trx

13 tests were completed in 2s with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CarsApi.UnitTests.Apis.Cars.DeleteCarRequestValidatorSpec 1✔️ 53ms
CarsApi.UnitTests.Apis.Cars.GetCarRequestValidatorSpec 1✔️ 166ms
CarsApi.UnitTests.Apis.Cars.RegisterCarRequestValidatorSpec 5✔️ 127ms
CarsApi.UnitTests.Apis.Cars.SearchAllCarsRequestValidatorSpec 1✔️ 36ms
CarsApi.UnitTests.Apis.Cars.TakeOfflineCarRequestValidatorSpec 5✔️ 28ms

✔️ CarsApi.UnitTests.Apis.Cars.DeleteCarRequestValidatorSpec

✔️ WhenAllProperties_ThenSucceeds

✔️ CarsApi.UnitTests.Apis.Cars.GetCarRequestValidatorSpec

✔️ WhenAllProperties_ThenSucceeds

✔️ CarsApi.UnitTests.Apis.Cars.RegisterCarRequestValidatorSpec

✔️ WhenAllProperties_ThenSuccess
✔️ WhenMakeIsNull_ThenThrows
✔️ WhenModelIsNull_ThenThrows
✔️ WhenYearIsLessThanMin_ThenThrows
✔️ WhenYearIsMoreThanMax_ThenThrows

✔️ CarsApi.UnitTests.Apis.Cars.SearchAllCarsRequestValidatorSpec

✔️ WhenAllProperties_ThenSuccess

✔️ CarsApi.UnitTests.Apis.Cars.TakeOfflineCarRequestValidatorSpec

✔️ WhenAllProperties_ThenSucceeds
✔️ WhenEndAtUtcIsLessThanStartAtUtc_ThenThrows
✔️ WhenEndAtUtcIsPast_ThenThrows
✔️ WhenReasonIsInvalid_ThenThrows
✔️ WhenStartAtUtcIsPast_ThenThrows

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_34.trx

40 tests were completed in 2s with 40 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Domain.Interfaces.UnitTests.Validations.ValidationsSpec 40✔️ 29ms

✔️ Domain.Interfaces.UnitTests.Validations.ValidationsSpec

✔️ WhenAnythingWithLeastChars_ThenReturnsTrue
✔️ WhenAnythingWithMaxChars_ThenReturnsTrue
✔️ WhenAnythingWithSpecialCharacters_ThenReturnsTrue
✔️ WhenAnythingWithTooLong_ThenReturnsFalse
✔️ WhenAnythingWithTooShort_ThenReturnsFalse
✔️ WhenDescriptiveNameIsEmpty_ThenReturnsFalse
✔️ WhenDescriptiveNameWithInvalidPrintableChar_ThenReturnsFalse
✔️ WhenDescriptiveNameWithLeastChars_ThenReturnsTrue
✔️ WhenDescriptiveNameWithMaxChars_ThenReturnsTrue
✔️ WhenDescriptiveNameWithTooLong_ThenReturnsFalse
✔️ WhenDescriptiveNameWithTooShort_ThenReturnsFalse
✔️ WhenDescriptiveNameWithValidChars_ThenReturnsTrue
✔️ WhenEmailWithCommonFormat_ThenReturnsTrue
✔️ WhenEmailWithMultiLevelDomainFormat_ThenReturnsTrue
✔️ WhenEmailWithNoName_ThenReturnsFalse
✔️ WhenEmailWithWhitespaceName_ThenReturnsFalse
✔️ WhenFreeFormTextWithInvalidPrintableChar_ThenReturnsFalse
✔️ WhenFreeFormTextWithLeastChars_ThenReturnsTrue
✔️ WhenFreeFormTextWithMaxChars_ThenReturnsTrue
✔️ WhenFreeFormTextWithMultiLineInUnix_ThenReturnsTrue
✔️ WhenFreeFormTextWithMultiLineInWindows_ThenReturnsTrue
✔️ WhenFreeFormTextWithTooLong_ThenReturnsFalse
✔️ WhenFreeFormTextWithTooShort_ThenReturnsFalse
✔️ WhenFreeFormTextWithValidChars_ThenReturnsTrue
✔️ WhenFreeFormTextWithZeroMinAndEmpty_ThenReturnsTrue
✔️ WhenMarkdownTextWithInvalidPrintableChar_ThenReturnsFalse
✔️ WhenMarkdownTextWithLeastChars_ThenReturnsTrue
✔️ WhenMarkdownTextWithMaxChars_ThenReturnsTrue
✔️ WhenMarkdownTextWithMultiLineInUnix_ThenReturnsTrue
✔️ WhenMarkdownTextWithMultiLineInWindows_ThenReturnsTrue
✔️ WhenMarkdownTextWithTooLong_ThenReturnsFalse
✔️ WhenMarkdownTextWithTooShort_ThenReturnsFalse
✔️ WhenMarkdownTextWithValidChars_ThenReturnsTrue
✔️ WhenMarkdownTextWithZeroMinAndEmpty_ThenReturnsTrue
✔️ WhenMarkdownWithValidChars_ThenReturnsTrue
✔️ WhenMatchesHasExpression_ThenReturnsTrue
✔️ WhenMatchesHasExpressionAndIsNotTooLong_ThenReturnsTrue
✔️ WhenMatchesHasExpressionAndIsTooLong_ThenReturnsFalse
✔️ WhenMatchesHasFunction_ThenReturnsFalse
✔️ WhenMatchesHasFunction_ThenReturnsTrue

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_34[1].trx

22 tests were completed in 3s with 22 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Application.Interfaces.UnitTests.GetOptionsExtensionsSpec 6✔️ 9ms
Application.Interfaces.UnitTests.SearchOptionsExtensionsSpec 5✔️ 25ms
Application.Interfaces.UnitTests.SearchOptionsSpec 11✔️ 768ms

✔️ Application.Interfaces.UnitTests.GetOptionsExtensionsSpec

✔️ WhenShouldExpandEmbeddedResourceAndExpandIsAll_ThenReturnsTrue
✔️ WhenShouldExpandEmbeddedResourceAndExpandIsCustomAndKnownChildResources_ThenReturnsTrue
✔️ WhenShouldExpandEmbeddedResourceAndExpandIsCustomAndNoChildResources_ThenReturnsFalse
✔️ WhenShouldExpandEmbeddedResourceAndExpandIsCustomAndUnknownChildResources_ThenReturnsFalse
✔️ WhenShouldExpandEmbeddedResourceAndExpandIsNone_ThenReturnsFalse
✔️ WhenShouldExpandEmbeddedResourceAndNullOptions_ThenReturnsTrue

✔️ Application.Interfaces.UnitTests.SearchOptionsExtensionsSpec

✔️ WhenToMetadataSafe_ThenReturnsPopulatedSearchMetadata
✔️ WhenToMetadataSafeAndTotal_ThenReturnsPopulatedSearchMetadata
✔️ WhenToMetadataSafeWithInitialSearchOptions_ThenReturnsSearchMetadata
✔️ WhenToMetadataSafeWithNullSearchOptions_ThenReturnsDefaultSearchMetadata
✔️ WhenToMetadataSafeWithNullSearchOptionsAndTotal_ThenReturnsDefaultSearchMetadata

✔️ Application.Interfaces.UnitTests.SearchOptionsSpec

✔️ WhenApplyWithMetadataAndLimitGreaterThanMax_ThenTakesMaxLimit
✔️ WhenApplyWithMetadataAndLimitGreaterThanMaxAndQueriedLessThanLimit_ThenTakesMaxQueried
✔️ WhenApplyWithMetadataAndLimitLessThanMax_ThenTakesLimit
✔️ WhenApplyWithMetadataAndLimitLessThanMaxAndQueriedLessThanLimit_ThenTakesMaxQueried
✔️ WhenApplyWithMetadataAndNoLimit_ThenTakesDefaultLimit
✔️ WhenApplyWithMetadataAndNoSorting_ThenNoOrdering
✔️ WhenApplyWithMetadataAndSortByIsEmpty_ThenNoOrdering
✔️ WhenApplyWithMetadataAndSortByIsUnknown_ThenNoOrdering
✔️ WhenApplyWithMetadataAndSortDirectionAscending_ThenOrderingAscending
✔️ WhenApplyWithMetadataAndSortDirectionDescending_ThenOrderingByDefault
✔️ WhenApplyWithMetadataAndSortDirectionDescending_ThenOrderingDescending

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_37.trx

11 tests were completed in 2s with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Domain.Common.UnitTests.NamePrefixedIdentifierFactorySpec 11✔️ 34ms

✔️ Domain.Common.UnitTests.NamePrefixedIdentifierFactorySpec

✔️ WhenConvertGuidWithKnownGuid_ThenReturnsConverted
✔️ WhenCreateWithKnownEntity_ThenReturnsId
✔️ WhenCreateWithUnknownEntityType_ThenReturnsGuid
✔️ WhenIsValidWithAnonymousUserId_ThenReturnsTrue
✔️ WhenIsValidWithInvalidPrefix_ThenReturnsFalse
✔️ WhenIsValidWithKnownPrefix_ThenReturnsTrue
✔️ WhenIsValidWithKnownSupportedPrefix_ThenReturnsTrue
✔️ WhenIsValidWithTooLongRandomPart_ThenReturnsFalse
✔️ WhenIsValidWithTooShortId_ThenReturnsFalse
✔️ WhenIsValidWithTooShortRandomPart_ThenReturnsFalse
✔️ WhenIsValidWithUnknownPrefix_ThenReturnsTrue

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_39.trx

11 tests were completed in 2s with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Application.Common.UnitTests.CallerContextExtensionsSpec 3✔️ 118ms
Application.Common.UnitTests.CallerSpec 8✔️ 108ms

✔️ Application.Common.UnitTests.CallerContextExtensionsSpec

✔️ WhenToCall_ThenReturnsCustomContext
✔️ WhenToCallAndContextIsNull_ThenReturnsUnknownContext
✔️ WhenToCaller_ThenReturnsCallerId

✔️ Application.Common.UnitTests.CallerSpec

✔️ WhenCreateAsAnonymous_ThenReturnsANewCallForAnonymousCaller
✔️ WhenCreateAsAnonymousTenant_ThenReturnsANewCallForAnonymousTenantedCaller
✔️ WhenCreateAsCallerFromCall_ThenReturnsACustomCaller
✔️ WhenCreateAsExternalWebHook_ThenReturnsWebhookServiceAccountCaller
✔️ WhenCreateAsMaintenance_ThenReturnsMaintenanceServiceAccountWithAllFeatures
✔️ WhenCreateAsMaintenanceTenant_ThenReturnsMaintenanceServiceAccountWithAllFeatures
✔️ WhenCreateAsMaintenanceWithNoCall_ThenReturnsMaintenanceServiceAccountWithAllFeatures
✔️ WhenCreateAsServiceClient_ThenReturnsServiceClientCaller

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_43.trx

25 tests were completed in 3s with 25 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Tools.Generators.WebApi.UnitTests.MinimalApiMediatRGeneratorSpec+GivenAServiceCLass 6✔️ 1s
Tools.Generators.WebApi.UnitTests.WebApiAssemblyVisitorSpec+GivenAnyClass 10✔️ 472ms
Tools.Generators.WebApi.UnitTests.WebApiAssemblyVisitorSpec+GivenAServiceClass 8✔️ 334ms
Tools.Generators.WebApi.UnitTests.WebApiAssemblyVisitorSpec+GivenAServiceClass+GivenAServiceOperation 1✔️ 1s

✔️ Tools.Generators.WebApi.UnitTests.MinimalApiMediatRGeneratorSpec+GivenAServiceCLass

✔️ WhenDefinesAMethodAndClassConstructor_ThenGenerates
✔️ WhenDefinesAMethodAndTestingOnly_ThenGenerates
✔️ WhenDefinesAMethodWithAsyncTaskReturnTypeAndCancellationToken_ThenGenerates
✔️ WhenDefinesAMethodWithAsyncTaskReturnTypeAndNoCancellationToken_ThenGenerates
✔️ WhenDefinesAMethodWithNakedReturnType_ThenGenerates
✔️ WhenDefinesNoMethods_ThenGenerates

✔️ Tools.Generators.WebApi.UnitTests.WebApiAssemblyVisitorSpec+GivenAnyClass

✔️ WhenVisitAssembly_ThenVisitsGlobalNamespace
✔️ WhenVisitNamedTypeAndIsClassButNotPublic_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndIsPublicClassButAlsoAbstract_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndIsPublicClassButAlsoStatic_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndIsPublicClassButNotAnyBaseType_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndIsPublicClassButWrongBaseType_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndNotServiceClass_ThenStopsVisiting
✔️ WhenVisitNamespaceAndIgnoredNamespace_ThenStopsVisiting
✔️ WhenVisitNamespaceAndNoTypes_ThenStopsVisiting
✔️ WhenVisitNamespaceThatHasTypes_ThenVisitsTypes

✔️ Tools.Generators.WebApi.UnitTests.WebApiAssemblyVisitorSpec+GivenAServiceClass

✔️ WhenVisitNamedTypeAndHasNoAttributes_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndHasNoParameters_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndHasWrongFirstParameter_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndHasWrongSecondParameter_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndNoMethods_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndOnlyPrivateMethod_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndOnlyPublicStaticMethod_ThenCreatesNoRegistrations
✔️ WhenVisitNamedTypeAndVoidReturnType_ThenCreatesNoRegistrations

✔️ Tools.Generators.WebApi.UnitTests.WebApiAssemblyVisitorSpec+GivenAServiceClass+GivenAServiceOperation

✔️ WhenVisitNamedTypeAndHasAttribute_ThenCreatesRegistration

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_49.trx

113 tests were completed in 16s with 113 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Tools.Analyzers.Core.UnitTests.MissingDocsAnalyzerSpec+GivenRuleSas001 29✔️ 13s
Tools.Analyzers.Core.UnitTests.MissingDocsAnalyzerSpec+GivenRuleSas002 11✔️ 11s
Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenAnyRule 5✔️ 10s
Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas010 18✔️ 12s
Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas011AndSas012 6✔️ 10s
Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas013 3✔️ 10s
Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas014 4✔️ 10s
Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas015 2✔️ 11s
Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas016 35✔️ 12s

✔️ Tools.Analyzers.Core.UnitTests.MissingDocsAnalyzerSpec+GivenRuleSas001

✔️ WhenInApiHost1Namespace_ThenNoAlert
✔️ WhenInJetbrainsAnnotationsNamespace_ThenNoAlert
✔️ WhenInternalClassNoSummary_ThenAlerts
✔️ WhenInternalDelegate_ThenAlerts
✔️ WhenInternalEnum_ThenAlerts
✔️ WhenInternalInterface_ThenAlerts
✔️ WhenInternalReadOnlyStruct_ThenAlerts
✔️ WhenInternalRecord_ThenAlerts
✔️ WhenInternalStaticClass_ThenNoAlert
✔️ WhenInternalStruct_ThenAlerts
✔️ WhenNestedPrivateInstanceClass_ThenNoAlert
✔️ WhenNestedPrivateStaticClass_ThenNoAlert
✔️ WhenNestedPublicInstanceClass_ThenAlerts
✔️ WhenNestedPublicStaticClass_ThenNoAlert
✔️ WhenPublicClassHasASummary_ThenNoAlert
✔️ WhenPublicClassHasBlankLine_ThenAlerts
✔️ WhenPublicClassHasEmptyLine_ThenAlerts
✔️ WhenPublicClassHasEmptyOtherTag_ThenAlerts
✔️ WhenPublicClassHasEmptySummary_ThenAlerts
✔️ WhenPublicClassHasSomeOtherTag_ThenAlerts
✔️ WhenPublicClassHasWhitespaceSummary_ThenAlerts
✔️ WhenPublicClassNoSummary_ThenAlerts
✔️ WhenPublicDelegate_ThenAlerts
✔️ WhenPublicEnum_ThenAlerts
✔️ WhenPublicInterface_ThenAlerts
✔️ WhenPublicReadOnlyStruct_ThenAlerts
✔️ WhenPublicRecord_ThenAlerts
✔️ WhenPublicStaticClass_ThenNoAlert
✔️ WhenPublicStruct_ThenAlerts

✔️ Tools.Analyzers.Core.UnitTests.MissingDocsAnalyzerSpec+GivenRuleSas002

✔️ WhenInApiHost1Namespace_ThenNoAlert
✔️ WhenInJetbrainsAnnotationsNamespace_ThenNoAlert
✔️ WhenInsideInternalStaticClass_ThenNoAlert
✔️ WhenInternalExtension_ThenAlerts
✔️ WhenInternalStaticMethod_ThenAlerts
✔️ WhenInternalStaticMethodWithParams_ThenAlerts
✔️ WhenPrivateExtension_ThenNoAlerts
✔️ WhenPublicExtensionHasASummary_ThenNoAlert
✔️ WhenPublicExtensionHasNoSummary_ThenAlerts
✔️ WhenPublicStaticMethod_ThenAlerts
✔️ WhenPublicStaticMethodWithParams_ThenAlerts

✔️ Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenAnyRule

✔️ WhenHasInternalMethod_ThenNoAlert
✔️ WhenHasNoMethods_ThenNoAlert
✔️ WhenHasPrivateMethod_ThenNoAlert
✔️ WhenInExcludedNamespace_ThenNoAlert
✔️ WhenNotWebApiClass_ThenNoAlert

✔️ Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas010

✔️ WhenHasPublicMethodWithNakedApiDeleteResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithNakedApiEmptyResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithNakedApiGetResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithNakedApiPostResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithNakedApiPutPatchResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithNakedApiResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithNakedApiSearchResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithTaskOfApiDeleteResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithTaskOfApiEmptyResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithTaskOfApiGetResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithTaskOfApiPostResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithTaskOfApiPutPatchResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithTaskOfApiResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithTaskOfApiSearchResultReturnType_ThenNoAlert
✔️ WhenHasPublicMethodWithTaskReturnType_ThenAlerts
✔️ WhenHasPublicMethodWithVoidReturnType_ThenAlerts
✔️ WhenHasPublicMethodWithWrongNakedReturnType_ThenAlerts
✔️ WhenHasPublicMethodWithWrongTaskReturnType_ThenAlerts

✔️ Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas011AndSas012

✔️ WhenFirstParameterIsNotRequestType_ThenAlerts
✔️ WhenHasNoParameters_ThenAlerts
✔️ WhenHasTooManyParameters_ThenAlerts
✔️ WhenOnlyRequest_ThenNoAlert
✔️ WhenRequestAndCancellation_ThenNoAlert
✔️ WhenSecondParameterIsNotCancellationToken_ThenAlerts

✔️ Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas013

✔️ WhenAttribute_ThenNoAlert
✔️ WhenHasNoAttributes_ThenAlerts
✔️ WhenMissingAttribute_ThenAlerts

✔️ Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas014

✔️ WhenDifferentRouteSegments_ThenAlerts
✔️ WhenOneRoute_ThenNoAlert
✔️ WhenThreeWithSameRouteFirstSegment_ThenNoAlert
✔️ WhenTwoWithSameRoute_ThenNoAlert

✔️ Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas015

✔️ WhenDuplicateRequests_ThenAlerts
✔️ WhenNoDuplicateRequests_ThenNoAlert

✔️ Tools.Analyzers.Core.UnitTests.WebApiClassAnalyzerSpec+GivenRuleSas016

✔️ WhenDeleteAndReturnsApiDeleteResult_ThenNotAlert
✔️ WhenDeleteAndReturnsApiEmptyResult_ThenNoAlert
✔️ WhenDeleteAndReturnsApiGetResult_ThenAlerts
✔️ WhenDeleteAndReturnsApiPostResult_ThenAlerts
✔️ WhenDeleteAndReturnsApiPutPatchResult_ThenAlerts
✔️ WhenDeleteAndReturnsApiResult_ThenNoAlert
✔️ WhenDeleteAndReturnsApiSearchResult_ThenAlerts
✔️ WhenGetAndReturnsApiDeleteResult_ThenAlerts
✔️ WhenGetAndReturnsApiEmptyResult_ThenNoAlert
✔️ WhenGetAndReturnsApiGetResult_ThenNoAlert
✔️ WhenGetAndReturnsApiPostResult_ThenAlerts
✔️ WhenGetAndReturnsApiPutPatchResult_ThenAlerts
✔️ WhenGetAndReturnsApiResult_ThenNoAlert
✔️ WhenGetAndReturnsApiSearchResult_ThenAlerts
✔️ WhenPostAndReturnsApiDeleteResult_ThenAlerts
✔️ WhenPostAndReturnsApiEmptyResult_ThenNoAlert
✔️ WhenPostAndReturnsApiGetResult_ThenAlerts
✔️ WhenPostAndReturnsApiPostResult_ThenNoAlert
✔️ WhenPostAndReturnsApiPutPatchResult_ThenAlerts
✔️ WhenPostAndReturnsApiResult_ThenAlerts
✔️ WhenPostAndReturnsApiSearchResult_ThenAlerts
✔️ WhenPutPatchAndReturnsApiDeleteResult_ThenAlerts
✔️ WhenPutPatchAndReturnsApiEmptyResult_ThenNoAlert
✔️ WhenPutPatchAndReturnsApiGetResult_ThenAlerts
✔️ WhenPutPatchAndReturnsApiPostResult_ThenAlerts
✔️ WhenPutPatchAndReturnsApiPutPatchResult_ThenNoAlert
✔️ WhenPutPatchAndReturnsApiResult_ThenNoAlert
✔️ WhenPutPatchAndReturnsApiSearchResult_ThenAlerts
✔️ WhenSearchAndReturnsApiDeleteResult_ThenAlerts
✔️ WhenSearchAndReturnsApiEmptyResult_ThenNoAlert
✔️ WhenSearchAndReturnsApiGetResult_ThenAlerts
✔️ WhenSearchAndReturnsApiPostResult_ThenAlerts
✔️ WhenSearchAndReturnsApiPutPatchResult_ThenAlerts
✔️ WhenSearchAndReturnsApiResult_ThenNoAlert
✔️ WhenSearchAndReturnsApiSearchResult_ThenNoAlert

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_51_57.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_00.trx

No tests found

❌ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_02.trx

30 tests were completed in 6s with 29 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.WebApi.Common.IntegrationTests.ApiContentNegotiationSpec 8✔️ 2s
Infrastructure.WebApi.Common.IntegrationTests.ApiDataFormatsSpec 4✔️ 1❌ 1s
Infrastructure.WebApi.Common.IntegrationTests.ApiDefaultStatusCode 7✔️ 3s
Infrastructure.WebApi.Common.IntegrationTests.ApiErrorSpec 2✔️ 2s
Infrastructure.WebApi.Common.IntegrationTests.ApiRequestCorrelationSpec+GivenAJsonClient 1✔️ 230ms
Infrastructure.WebApi.Common.IntegrationTests.ApiRequestCorrelationSpec+GivenAnHttpClient 4✔️ 3s
Infrastructure.WebApi.Common.IntegrationTests.ApiValidationSpec 3✔️ 1s

✔️ Infrastructure.WebApi.Common.IntegrationTests.ApiContentNegotiationSpec

✔️ WhenGetWithAcceptForJson_ThenReturnsJsonResponse
✔️ WhenGetWithAcceptForUnsupported_ThenReturns415
✔️ WhenGetWithAcceptForXml_ThenReturnsXmlResponse
✔️ WhenGetWithFormatForJson_ThenReturnsJsonResponse
✔️ WhenGetWithFormatForUnsupported_ThenReturns415
✔️ WhenGetWithFormatForXml_ThenReturnsXmlResponse
✔️ WhenGetWithNoAccept_ThenReturnsJsonResponse
✔️ WhenGetWithNoFormat_ThenReturnsJsonResponse

❌ Infrastructure.WebApi.Common.IntegrationTests.ApiDataFormatsSpec

✔️ WhenPostWithDifferentDataTypesForJson_ThenReturnsValues
❌ WhenPostWithDifferentDataTypesForXml_ThenReturnsValues
	Expected string to be "<?xml version="1.0" encoding="utf-8"?><FormatsTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-10-10T02:52:03.2110200Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-10-10T01:52:03.2110200Z</Time></FormatsTestingOnlyResponse>" with a length of 475, but "<?xml version="1.0" encoding="utf-8"?><FormatsTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-10-10T02:52:03.21102Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-10-10T01:52:03.21102Z</Time></FormatsTestingOnlyResponse>" has a length of 471, differs near "Z</" (index 292).
✔️ WhenPostWithIso8601DateTime_ThenReturnsUnixTimestamp
✔️ WhenPostWithLowercaseEnum_ThenReturnsCamelcased
✔️ WhenPostWithUnixSecondsDateTime_ThenReturnsUnixTimestamp

✔️ Infrastructure.WebApi.Common.IntegrationTests.ApiDefaultStatusCode

✔️ WhenDelete_ThenReturnsNoContent
✔️ WhenGet_ThenReturnsOk
✔️ WhenPatch_ThenReturnsAccepted
✔️ WhenPost_ThenReturnsCreated
✔️ WhenPostWithoutLocation_ThenReturnsOk
✔️ WhenPut_ThenReturnsAccepted
✔️ WhenSearch_ThenReturnsOk

✔️ Infrastructure.WebApi.Common.IntegrationTests.ApiErrorSpec

✔️ WhenGetError_ThenReturnsError
✔️ WhenGetThrowsException_ThenReturnsServerError

✔️ Infrastructure.WebApi.Common.IntegrationTests.ApiRequestCorrelationSpec+GivenAJsonClient

✔️ WhenGetWithNoRequestId_ThenReturnsGeneratedResponseHeader

✔️ Infrastructure.WebApi.Common.IntegrationTests.ApiRequestCorrelationSpec+GivenAnHttpClient

✔️ WhenGetWithNoRequestId_ThenReturnsGeneratedResponseHeader
✔️ WhenGetWithRequestId_ThenReturnsSameResponseHeader
✔️ WhenGetWithXCorrelationId_ThenReturnsSameResponseHeader
✔️ WhenGetWithXRequestId_ThenReturnsSameResponseHeader

✔️ Infrastructure.WebApi.Common.IntegrationTests.ApiValidationSpec

✔️ WhenGetUnvalidatedRequest_ThenReturns200
✔️ WhenGetValidatedRequestWithInvalidFields_ThenReturnsValidationError
✔️ WhenGetValidatedRequestWithValidId_ThenReturnsResponse

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_04.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_06.trx

5 tests were completed in 3s with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CarsApi.IntegrationTests.CarsApiSpec 5✔️ 823ms

✔️ CarsApi.IntegrationTests.CarsApiSpec

✔️ WhenDeleteCar_ThenDeletes
✔️ WhenGetCar_ThenReturnsCar
✔️ WhenRegisterCar_ThenReturnsCar
✔️ WhenSearchAllCars_ThenReturnsCars
✔️ WhenTakeCarOffline_ThenReturnsCar

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_07.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_08.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_10.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_11.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_13.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_14.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_15.trx

No tests found

Annotations

Check failure on line 73 in src/Infrastructure.WebApi.Common.IntegrationTests/ApiDataFormatsSpec.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.WebApi.Common.IntegrationTests.ApiDataFormatsSpec ► WhenPostWithDifferentDataTypesForXml_ThenReturnsValues

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az553-951_2023-10-10_01_52_02.trx
Error:
  Expected string to be "<?xml version="1.0" encoding="utf-8"?><FormatsTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-10-10T02:52:03.2110200Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-10-10T01:52:03.2110200Z</Time></FormatsTestingOnlyResponse>" with a length of 475, but "<?xml version="1.0" encoding="utf-8"?><FormatsTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-10-10T02:52:03.21102Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-10-10T01:52:03.21102Z</Time></FormatsTestingOnlyResponse>" has a length of 471, differs near "Z</" (index 292).
Raw output
Expected string to be "<?xml version="1.0" encoding="utf-8"?><FormatsTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-10-10T02:52:03.2110200Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-10-10T01:52:03.2110200Z</Time></FormatsTestingOnlyResponse>" with a length of 475, but "<?xml version="1.0" encoding="utf-8"?><FormatsTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-10-10T02:52:03.21102Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-10-10T01:52:03.21102Z</Time></FormatsTestingOnlyResponse>" has a length of 471, differs near "Z</" (index 292).
   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Primitives.StringEqualityValidator.ValidateAgainstLengthDifferences()
   at FluentAssertions.Primitives.StringValidator.Validate()
   at FluentAssertions.Primitives.StringAssertions`1.Be(String expected, String because, Object[] becauseArgs)
   at Infrastructure.WebApi.Common.IntegrationTests.ApiDataFormatsSpec.WhenPostWithDifferentDataTypesForXml_ThenReturnsValues() in D:\a\saastack\saastack\src\Infrastructure.WebApi.Common.IntegrationTests\ApiDataFormatsSpec.cs:line 73
--- End of stack trace from previous location ---