/// <summary> /// Configures the request to use the specified string as a bearer token in the authorization header. /// </summary> /// <param name="fixture">The fixture.</param> /// <param name="token">The token.</param> /// <returns></returns> public static IMvcFunctionalTestFixture HavingBearerToken(this IMvcFunctionalTestFixture fixture, string token) => fixture.HavingConfiguredHttpMessage(message => message.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token));