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");