public async Task DeleteInvitation_AsPlanner_ShouldDeleteInvitation() { // Arrange var(invitationToDeleteId, rowVersion) = await CreateValidDeletePunchOutDtoAsync(_participantsForSigning); await InvitationsControllerTestsHelper.GetHistoryAsync( UserType.Creator, TestFactory.PlantWithAccess, invitationToDeleteId); // Act await InvitationsControllerTestsHelper.DeletePunchOutAsync(UserType.Planner, TestFactory.PlantWithAccess, invitationToDeleteId, rowVersion); // Assert await InvitationsControllerTestsHelper.GetInvitationAsync( UserType.Creator, TestFactory.PlantWithAccess, invitationToDeleteId, HttpStatusCode.NotFound); await InvitationsControllerTestsHelper.GetHistoryAsync( UserType.Creator, TestFactory.PlantWithAccess, invitationToDeleteId, HttpStatusCode.NotFound); }