Test Report ❌
❌ tests/web/Jordnaer.Server.Tests/TestResults/test-results.trx
49 tests were completed in 66s with 45 passed, 4 failed and 0 skipped.
✅ Jordnaer.Server.Tests.Authentication.AuthApi_Should
✅ Fail_To_Login_User_When_User_Info_Is_Not_Registered
✅ Fail_To_Logout_User_When_User_Is_Not_Logged_In_And_Redirect_To_Login
✅ Fail_To_Register_User_When_User_Info_Is_Invalid(invalidPassword: "123456789")
✅ Fail_To_Register_User_When_User_Info_Is_Invalid(invalidPassword: "12345AAAAA")
✅ Fail_To_Register_User_When_User_Info_Is_Invalid(invalidPassword: "aaaaaaaaaa")
✅ Fail_To_Register_User_When_User_Info_Is_Invalid(invalidPassword: "aaaaaAAAAA")
✅ Fail_To_Register_User_When_User_Is_Already_Registered
✅ Login_User_When_User_Info_Is_Valid
✅ Logout_User_When_User_Is_Authenticated
✅ Register_User_When_User_Info_Is_Valid
✅ Jordnaer.Server.Tests.Authentication.DeleteUserService_Should
✅ DeleteUserAsync_Should_Delete_User_When_Token_Is_Valid
✅ DeleteUserAsync_Should_Not_Delete_User_When_DeleteAsync_Fails
✅ DeleteUserAsync_Should_Not_Delete_User_When_Exception_Thrown
✅ DeleteUserAsync_Should_Not_Delete_User_When_ExecuteDeleteAsync_Fails
✅ DeleteUserAsync_Should_Not_Delete_User_When_Token_Is_Invalid
✅ InitiateDeleteUserAsync_Should_Not_Send_Email_When_HttpContext_Is_Null
✅ InitiateDeleteUserAsync_Should_Send_Email_On_Success
✅ Jordnaer.Server.Tests.Authentication.UserService_Should
✅ Create_User_When_User_Info_Is_Valid
✅ CreateUserAsync_Should_Not_Create_User_When_Invalid
✅ IsLoginValidAsync_Should_Return_False_When_Password_Not_Matching
✅ IsLoginValidAsync_Should_Return_False_When_User_Is_LockedOut
✅ IsLoginValidAsync_Should_Return_False_When_User_Not_Found
✅ IsLoginValidAsync_Should_Return_True_When_Valid
✅ Jordnaer.Server.Tests.AzureAppConfiguration_Should
✅ Contain_Authentication_Scheme_Facebook
✅ Contain_Authentication_Scheme_Google
✅ Contain_Authentication_Scheme_Microsoft
✅ Contain_ConnectionString_JordnaerDbContext
✅ Jordnaer.Server.Tests.LookingFor.LookingForApi_Should
✅ Get_LookingForList_Successfully
❌ Jordnaer.Server.Tests.Profile.ImageService_Should
❌ DeleteImage_Successfully
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
❌ UploadImage_OverridesExistingBlob_Successfully
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
❌ UploadImage_UsingByteArray_Successfully
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
❌ UploadImage_UsingFileStream_Successfully
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
✅ Jordnaer.Server.Tests.Profile.ProfileApi_Should
✅ Get_Current_User_Profile
✅ Update_Current_User_Profile_Successfully
✅ Update_Current_User_Profile_Unauthorized
✅ Jordnaer.Server.Tests.UserSearch.DataForsyningenClient_Should
✅ Get_Addresses_With_AutoComplete
✅ Get_ZipCodes_Within_Circle
✅ Ping_Data_Forsyningen_API
✅ Jordnaer.Server.Tests.UserSearch.UserSearchApi_Should
✅ Return_UserSearchResult_WhenCallIsValid
✅ Jordnaer.Server.Tests.UserSearch.UserSearchService_Should
✅ Return_UserSearchResult_Given_Valid_Filter
✅ Return_UserSearchResult_With_ChildGender_Filter
✅ Return_UserSearchResult_With_CombinedName_Filter
✅ Return_UserSearchResult_With_FirstName_Filter
✅ Return_UserSearchResult_With_LastName_Filter
✅ Return_UserSearchResult_With_Location_Filter
✅ Return_UserSearchResult_With_LookingFor_Filter
✅ Return_UserSearchResult_With_MaximumChildAge_Filter
✅ Return_UserSearchResult_With_MinimumChildAge_Filter
✅ Return_UserSearchResult_With_ProfileName_Filter
Annotations
Check failure on line 21 in tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs
github-actions / Test Report
Jordnaer.Server.Tests.Profile.ImageService_Should ► DeleteImage_Successfully
Failed test found in:
tests/web/Jordnaer.Server.Tests/TestResults/test-results.trx
Error:
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
Raw output
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.ValidateResolution(Type serviceType, IServiceScope scope, IServiceScope rootScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Jordnaer.Server.Tests.Profile.ImageService_Should..ctor(JordnaerWebApplicationFactory factory) in /home/runner/work/Jordnaer/Jordnaer/tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs:line 21
at InvokeStub_ImageService_Should..ctor(Object, Object, IntPtr*)
at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Check failure on line 21 in tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs
github-actions / Test Report
Jordnaer.Server.Tests.Profile.ImageService_Should ► UploadImage_OverridesExistingBlob_Successfully
Failed test found in:
tests/web/Jordnaer.Server.Tests/TestResults/test-results.trx
Error:
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
Raw output
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.ValidateResolution(Type serviceType, IServiceScope scope, IServiceScope rootScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Jordnaer.Server.Tests.Profile.ImageService_Should..ctor(JordnaerWebApplicationFactory factory) in /home/runner/work/Jordnaer/Jordnaer/tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs:line 21
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Check failure on line 21 in tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs
github-actions / Test Report
Jordnaer.Server.Tests.Profile.ImageService_Should ► UploadImage_UsingByteArray_Successfully
Failed test found in:
tests/web/Jordnaer.Server.Tests/TestResults/test-results.trx
Error:
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
Raw output
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.ValidateResolution(Type serviceType, IServiceScope scope, IServiceScope rootScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Jordnaer.Server.Tests.Profile.ImageService_Should..ctor(JordnaerWebApplicationFactory factory) in /home/runner/work/Jordnaer/Jordnaer/tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs:line 21
at InvokeStub_ImageService_Should..ctor(Object, Object, IntPtr*)
at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Check failure on line 21 in tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs
github-actions / Test Report
Jordnaer.Server.Tests.Profile.ImageService_Should ► UploadImage_UsingFileStream_Successfully
Failed test found in:
tests/web/Jordnaer.Server.Tests/TestResults/test-results.trx
Error:
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
Raw output
System.InvalidOperationException : Cannot resolve scoped service 'Jordnaer.Server.Features.Profile.IImageService' from root provider.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.ValidateResolution(Type serviceType, IServiceScope scope, IServiceScope rootScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Jordnaer.Server.Tests.Profile.ImageService_Should..ctor(JordnaerWebApplicationFactory factory) in /home/runner/work/Jordnaer/Jordnaer/tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs:line 21
at InvokeStub_ImageService_Should..ctor(Object, Object, IntPtr*)
at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)