Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dim@6043 unittests toevoegen #718

Merged
merged 17 commits into from
Sep 21, 2023

Merge branch 'main' into DIM@6043---Unittests-toevoegen

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

Dim@6043 unittests toevoegen #718

Merge branch 'main' into DIM@6043---Unittests-toevoegen
c6c4c1e
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / dotnet tests succeeded Sep 21, 2023 in 1s

dotnet tests ✅

Tests passed successfully

✅ testresults/_buildkitsandbox_2023-09-21_14_51_39.trx

72 tests were completed in 4s with 72 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Kiss.Bff.Test.AuthorizationCheckTests 14✅ 144ms
Kiss.Bff.Test.BerichtenControllerTests 5✅ 261ms
Kiss.Bff.Test.CategorienControllerTests 1✅ 35ms
Kiss.Bff.Test.GespreksresultatenUnitTests 8✅ 84ms
Kiss.Bff.Test.GetFaqTests 1✅ 95ms
Kiss.Bff.Test.GetFeaturedCountControllerTests 1✅ 19ms
Kiss.Bff.Test.LinksControllerUnitTests 7✅ 24ms
Kiss.Bff.Test.MarkeerGelezenControllerTests 2✅ 35ms
Kiss.Bff.Test.ReadContactmomentenDetailsTests 2✅ 15ms
Kiss.Bff.Test.ReadContactverzoekenVragenSetsTests 2✅ 20ms
Kiss.Bff.Test.SearchBerichtenControllerTests 1✅ 79ms
Kiss.Bff.Test.SendFeedbackTest 1✅ 408ms
Kiss.Bff.Test.SkillsControllerUnitTests 8✅ 52ms
Kiss.Bff.Test.UserExtensionsTests 9✅ 2ms
Kiss.Bff.Test.VerwerkingMiddlewareUnitTests 1✅ 98ms
Kiss.Bff.Test.WriteContactmomentDetailsTests 2✅ 22ms
Kiss.Bff.Test.WriteContactverzoekenVragenSetsTests 5✅ 24ms
Kiss.Bff.Test.ZaakGerichtWerkenUnitTests 2✅ 246ms

✅ Kiss.Bff.Test.AuthorizationCheckTests

✅ Test (/api/contactmomentendetails?id=1)
✅ Test (/api/faq)
✅ Test (/api/internetaak/api/version/objects,post)
✅ Test (/api/postcontactmomenten,post)
✅ TestAuthorizeAttribute (Kiss.Bff.Beheer.Gespreksresultaten.Controllers.GespreksresultatenController,DeleteGespreksresultaat,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.Beheer.Gespreksresultaten.Controllers.GespreksresultatenController,PostGespreksresultaat,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.Beheer.Gespreksresultaten.Controllers.GespreksresultatenController,PutGespreksresultaat,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.Beheer.Links.Controllers.LinksController,DeleteLink,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.Beheer.Links.Controllers.LinksController,PostLink,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.Beheer.Links.Controllers.LinksController,PutLink,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.Beheer.Verwerking.GetVerwerkingsLogs,Get,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.NieuwsEnWerkinstructies.Controllers.SkillsController,PostSkill,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.NieuwsEnWerkinstructies.Controllers.SkillsController,PutSkill,System.Type[])
✅ TestAuthorizeAttribute (Kiss.Bff.ZaakGerichtWerken.Contactmomenten.ReadContactmomentenDetails,Get,System.Type[])

✅ Kiss.Bff.Test.BerichtenControllerTests

✅ DeleteBericht_ReturnsNoContentResult_WhenBerichtIsDeleted
✅ GetBericht_ReturnsOkObjectResult_WithBerichtViewModel
✅ GetBerichten_ReturnsOkResult_WithBerichtOverviewModels
✅ PostBericht_ReturnsCreatedAtActionResult_WithCreatedBerichtViewModel
✅ PutBericht_ReturnsNoContentResult_WhenBerichtIsUpdated

✅ Kiss.Bff.Test.CategorienControllerTests

✅ GetLinks_ReturnsOkResult_WithCategories

✅ Kiss.Bff.Test.GespreksresultatenUnitTests

✅ DeleteGespreksresultaat_WithInvalidId_ReturnsNoContent
✅ DeleteGespreksresultaat_WithValidId_ReturnsNoContent
✅ GetGespreksresultaat_ReturnsGespreksresultaat
✅ GetGespreksresultaat_WithInvalidId_ReturnsNotFound
✅ GetGespreksresultaten_ReturnsOkResultWithGespreksresultaten
✅ PostGespreksresultaat_ReturnsCreatedResponseWithGespreksresultaat
✅ PutGespreksresultaat_WithInvalidId_ReturnsNotFound
✅ PutGespreksresultaat_WithValidId_ReturnsNoContent

✅ Kiss.Bff.Test.GetFaqTests

✅ Get_ReturnsTopQuestions

✅ Kiss.Bff.Test.GetFeaturedCountControllerTests

✅ GetCount_ReturnsActionResult_WithFeaturedCount

✅ Kiss.Bff.Test.LinksControllerUnitTests

✅ DeleteLink_WithInvalidId_ReturnsNotFoundResult
✅ DeleteLink_WithValidId_ReturnsNoContent
✅ GetLink_WithInvalidId_ReturnsNotFoundResult
✅ GetLink_WithValidId_ReturnsLink
✅ PostLink_WithValidLink_ReturnsCreatedResultWithLink
✅ PutLink_WithInvalidId_ReturnsNotFoundResult
✅ PutLink_WithValidId_ReturnsNoContent

✅ Kiss.Bff.Test.MarkeerGelezenControllerTests

✅ MarkeerGelezen_ExistingEntity_IsGelezenFalse_RemovesGelezen
✅ MarkeerGelezen_ExistingEntity_UpdatesGelezenOp

✅ Kiss.Bff.Test.ReadContactmomentenDetailsTests

✅ Get_InvalidId_ReturnsNotFound
✅ Get_ValidId_ReturnsOk

✅ Kiss.Bff.Test.ReadContactverzoekenVragenSetsTests

✅ Get_ContactVerzoekVragenSetsExist_ReturnsOkWithList
✅ Get_NoContactVerzoekVragenSets_ReturnsOkWithEmptyList

✅ Kiss.Bff.Test.SearchBerichtenControllerTests

✅ GetBerichten_ReturnsSearchResults

✅ Kiss.Bff.Test.SendFeedbackTest

✅ BuildEmailBody_ContainsUserName

✅ Kiss.Bff.Test.SkillsControllerUnitTests

✅ DeleteSkill_ReturnsNoContentResult_WithValidId
✅ DeleteSkill_ReturnsNotFoundResult_WithInvalidId
✅ GetSkill_ReturnsNotFoundResult_WithInvalidId
✅ GetSkill_ReturnsOkResult_WithValidId
✅ GetSkills_ReturnsOkResult_WithSkills
✅ PostSkill_ReturnsCreatedAtActionResult_WithValidModel
✅ PutSkill_ReturnsNoContentResult_WithValidId
✅ PutSkill_ReturnsNotFoundResult_WithInvalidId

✅ Kiss.Bff.Test.UserExtensionsTests

✅ GetEmail_UserHasJwtEmailClaim_ReturnsJwtEmailClaim
✅ GetEmail_UserHasPreferredUserNameClaim_ReturnsPreferredUserNameClaim
✅ GetFirstName_UserHasJwtGivenNameClaim_ReturnsJwtGivenNameClaim
✅ GetId_UserHasNameIdentifier_ReturnsNameIdentifier
✅ GetId_UserHasObjectIdentifier_ReturnsObjectIdentifier
✅ GetLastName_UserHasIdentityName_ReturnsIdentityName
✅ GetLastName_UserHasJwtFamilyNameClaim_ReturnsJwtFamilyNameClaim
✅ GetLastName_UserHasJwtNameClaim_ReturnsJwtNameClaim
✅ GetMedewerkerIdentificatie_ReturnsJsonObjectWithTruncatedValues

✅ Kiss.Bff.Test.VerwerkingMiddlewareUnitTests

✅ SendAsync_LogsHttpRequestToDatabase

✅ Kiss.Bff.Test.WriteContactmomentDetailsTests

✅ Post_ModelWithExistingId_UpdatesExistingEntity
✅ Post_ValidModel_ReturnsOk

✅ Kiss.Bff.Test.WriteContactverzoekenVragenSetsTests

✅ DeleteContactVerzoekVragenSet_ReturnsNotFound_WhenModelDoesNotExist
✅ DeleteContactVerzoekVragenSet_ReturnsOkResult_WhenModelIsDeleted
✅ PostContactVerzoekVragenSet_ReturnsOkResult_WhenModelIsAdded
✅ PutContactVerzoekVragenSet_ReturnsNotFound_WhenModelDoesNotExist
✅ PutContactVerzoekVragenSet_ReturnsOkResult_WhenModelIsUpdated

✅ Kiss.Bff.Test.ZaakGerichtWerkenUnitTests

✅ GenerateToken_ReturnsValidToken
✅ Post_AddsOrUpdatesContactmomentToDatabase