示例#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="models">The models.</param>
 /// <param name="options">The options.</param>
 /// <returns></returns>
 public static IMvcFunctionalTestFixture ShouldReturnJsonCollectionContainingEquivalentModels <TModel>(this IMvcFunctionalTestFixture fixture,
                                                                                                       ICollection <TModel> models,
                                                                                                       Func <EquivalencyAssertionOptions <TModel>, EquivalencyAssertionOptions <TModel> > options = null) =>
 fixture.ShouldReturnJsonCollectionContainingEquivalentModels <TModel, TModel>(models, options);