public void SignOut_ResultHasCorrectValues(AuthenticationProperties properties, IList <string> authenticationSchemes) { // Act var result = TypedResults.SignOut(properties, authenticationSchemes); // Assert Assert.Equal(properties, result.Properties); Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection <string>(new List <string>()), result.AuthenticationSchemes); }
/// <summary> /// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignOutAsync(HttpContext, string?, AuthenticationProperties?)" />. /// </summary> /// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> /// <param name="authenticationSchemes">The authentication scheme to use for the sign-out operation.</param> /// <returns>The created <see cref="IResult"/> for the response.</returns> public static IResult SignOut(AuthenticationProperties?properties = null, IList <string>?authenticationSchemes = null) => TypedResults.SignOut(properties, authenticationSchemes);