Skip to content

Added Roslyn generators to solution #42

Added Roslyn generators to solution

Added Roslyn generators to solution #42

GitHub Actions / All Tests succeeded Oct 1, 2023 in 0s

All Tests ✔️

Tests passed successfully

Report Passed Failed Skipped Time
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_13.trx 144✔️ 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_17.trx 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_17[1].trx 6s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_20.trx 3s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_20[1].trx 77✔️ 5s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_22.trx 13✔️ 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_24.trx 22✔️ 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_26.trx 40✔️ 3s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_27.trx 11✔️ 1s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_32.trx 40✔️ 6s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_40.trx 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_44.trx 7s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_47.trx 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_54.trx 5✔️ 8s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_54[1].trx 25✔️ 20s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_58.trx 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_57_01.trx 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_57_02.trx 1s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_57_04.trx 2s
src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_57_04[1].trx 1s

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_13.trx

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

Test suite Passed Failed Skipped Time
Common.UnitTests.Extensions.CollectionExtensionsSpec 3✔️ 1ms
Common.UnitTests.Extensions.DateTimeExtensionsSpec 21✔️ 9ms
Common.UnitTests.Extensions.DictionaryExtensionsSpec 5✔️ 13ms
Common.UnitTests.Extensions.EnumExtensionsSpec 10✔️ 118ms
Common.UnitTests.Extensions.StringExtensionsSpec 36✔️ 95ms
Common.UnitTests.OptionalSpec 24✔️ 120ms
Common.UnitTests.ResultSpec+ResultWithoutValueSpec 14✔️ 5ms
Common.UnitTests.ResultSpec+ResultWithValueSpec 31✔️ 87ms

✔️ 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-az1252-34_2023-10-01_22_56_17.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_17[1].trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_20.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_20[1].trx

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

Test suite Passed Failed Skipped Time
Infrastructure.WebApi.Common.UnitTests.ContentNegotiationFilterSpec 11✔️ 2s
Infrastructure.WebApi.Common.UnitTests.HasGetOptionsExtensionsSpec 6✔️ 73ms
Infrastructure.WebApi.Common.UnitTests.HasGetOptionsSpec 4✔️ 6ms
Infrastructure.WebApi.Common.UnitTests.HasSearchOptionsExtensionsSpec 9✔️ 8ms
Infrastructure.WebApi.Common.UnitTests.JsonDateTimeConverterSpec 6✔️ 15ms
Infrastructure.WebApi.Common.UnitTests.ServiceCollectionExtensionsSpec 5✔️ 37ms
Infrastructure.WebApi.Common.UnitTests.SubDomainModulesSpec 9✔️ 3s
Infrastructure.WebApi.Common.UnitTests.Validation.HasGetOptionsValidatorSpec 10✔️ 20ms
Infrastructure.WebApi.Common.UnitTests.Validation.HasSearchOptionsValidatorSpec 15✔️ 86ms
Infrastructure.WebApi.Common.UnitTests.ValidationBehaviorSpec 2✔️ 114ms

✔️ 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.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-az1252-34_2023-10-01_22_56_22.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✔️ 3ms
CarsApi.UnitTests.Apis.Cars.GetCarRequestValidatorSpec 1✔️ 3ms
CarsApi.UnitTests.Apis.Cars.RegisterCarRequestValidatorSpec 5✔️ 42ms
CarsApi.UnitTests.Apis.Cars.SearchAllCarsRequestValidatorSpec 1✔️ 138ms
CarsApi.UnitTests.Apis.Cars.TakeOfflineCarRequestValidatorSpec 5✔️ 289ms

✔️ 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-az1252-34_2023-10-01_22_56_24.trx

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

Test suite Passed Failed Skipped Time
Application.Interfaces.UnitTests.GetOptionsExtensionsSpec 6✔️ 7ms
Application.Interfaces.UnitTests.SearchOptionsExtensionsSpec 5✔️ 24ms
Application.Interfaces.UnitTests.SearchOptionsSpec 11✔️ 895ms

✔️ 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-az1252-34_2023-10-01_22_56_26.trx

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

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

✔️ 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-az1252-34_2023-10-01_22_56_27.trx

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

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

✔️ 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-az1252-34_2023-10-01_22_56_32.trx

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

Test suite Passed Failed Skipped Time
Tools.Analyzers.Core.UnitTests.MissingDocsAnalyzerSpec+GivenAMethod 11✔️ 4s
Tools.Analyzers.Core.UnitTests.MissingDocsAnalyzerSpec+GivenAType 29✔️ 5s

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

✔️ 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.MissingDocsAnalyzerSpec+GivenAType

✔️ 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

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_40.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_44.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_47.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_54.trx

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

Test suite Passed Failed Skipped Time
CarsApi.IntegrationTests.CarsApiSpec 5✔️ 6s

✔️ CarsApi.IntegrationTests.CarsApiSpec

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

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_54[1].trx

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

Test suite Passed Failed Skipped Time
Infrastructure.WebApi.Common.IntegrationTests.ApiContentNegotiationSpec 8✔️ 11s
Infrastructure.WebApi.Common.IntegrationTests.ApiDataFormatsSpec 5✔️ 18s
Infrastructure.WebApi.Common.IntegrationTests.ApiDefaultStatusCode 7✔️ 5s
Infrastructure.WebApi.Common.IntegrationTests.ApiErrorSpec 2✔️ 12s
Infrastructure.WebApi.Common.IntegrationTests.ApiValidationSpec 3✔️ 12s

✔️ 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
✔️ 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.ApiValidationSpec

✔️ WhenGetUnvalidatedRequest_ThenReturns200
✔️ WhenGetValidatedRequestWithInvalidFields_ThenReturnsValidationError
✔️ WhenGetValidatedRequestWithValidId_ThenReturnsResponse

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_56_58.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_57_01.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_57_02.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_57_04.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az1252-34_2023-10-01_22_57_04[1].trx

No tests found