/// <summary> /// Configures the specified fixture's act step to be an HTTP request with the specified method, url and body. /// </summary> /// <typeparam name="TModel">The type of the model.</typeparam> /// <param name="fixture">The fixture.</param> /// <param name="method">The method.</param> /// <param name="url">The URL.</param> /// <param name="model">The model.</param> /// <param name="configurator">The configurator.</param> /// <returns></returns> public static IMvcFunctionalTestFixture WhenCallingRestMethod <TModel>(this IMvcFunctionalTestFixture fixture, HttpMethod method, string url, out TModel model, Action <Faker, TModel> configurator = null) => fixture.HavingModel(out model, configurator) .WhenCallingRestMethod(method, url, model);