예제 #1
0
 /// <summary>
 /// Adds an assertion to the specified fixture that the JSON result will be equivalent to the specified model.
 /// </summary>
 /// <typeparam name="TModel">The type of the model.</typeparam>
 /// <param name="fixture">The fixture.</param>
 /// <param name="model">The model.</param>
 /// <param name="options">The equivalency assertion options.</param>
 /// <returns></returns>
 public static IMvcFunctionalTestFixture ShouldReturnEquivalentJson <TModel>(
     this IMvcFunctionalTestFixture fixture,
     TModel model,
     Func <EquivalencyAssertionOptions <TModel>, EquivalencyAssertionOptions <TModel> > options = null) =>
 fixture.ShouldReturnEquivalentJson <TModel, TModel>(model, options);