From d73e1c6aae3965c3a1c7a509a6eba2d83b128fbc Mon Sep 17 00:00:00 2001 From: Alexander Lolk Date: Thu, 21 Dec 2023 10:57:44 +0100 Subject: [PATCH] Remove warnings --- test/Chirp.Razor.Tests/IntegrationTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Chirp.Razor.Tests/IntegrationTests.cs b/test/Chirp.Razor.Tests/IntegrationTests.cs index 23414bf0..72f40a13 100644 --- a/test/Chirp.Razor.Tests/IntegrationTests.cs +++ b/test/Chirp.Razor.Tests/IntegrationTests.cs @@ -327,7 +327,7 @@ public async Task CheckIfReactedByUser(string typeOfReaction) await ar.CreateAuthor(user!); var author = await ar.GetAuthorByName(authorName); await cr.CreateCheep(cheep, author!); - var cheepUser = (await ar.GetAuthorByName(user!.Name)).Cheeps[0]; + var cheepUser = (await ar.GetAuthorByName(user!.Name))!.Cheeps[0]; // the user that will like the cheep await ur.CreateUser("CheepLiker", "cheepliker69@gmail.com"); @@ -369,7 +369,7 @@ public async Task CheckIfReactedByUser_ChangedFromOneReactionToAnother(string fi await ar.CreateAuthor(user!); var author = await ar.GetAuthorByName(authorName); await cr.CreateCheep(cheep, author!); - var cheepUser = (await ar.GetAuthorByName(user!.Name)).Cheeps[0]; + var cheepUser = (await ar.GetAuthorByName(user!.Name))!.Cheeps[0]; // the user that will like the cheep await ur.CreateUser("CheepLiker", "cheepliker69@gmail.com"); @@ -420,7 +420,7 @@ public async Task CheckIfReactedByUser_ChangedFromUpvoteOrDownvoteToNoReaction(s var author = await ar.GetAuthorByName(authorName); await cr.CreateCheep(cheep, author!); - var cheepUser = (await ar.GetAuthorByName(user!.Name)).Cheeps[0]; + var cheepUser = (await ar.GetAuthorByName(user!.Name))!.Cheeps[0]; // the user that will like the cheep await ur.CreateUser("CheepLiker", "cheepliker69@gmail.com");