コード例 #1
0
 /// <summary>
 /// Gets the property of the specified type with the specified key and runs the specified property action.
 /// </summary>
 /// <typeparam name="TProperty">The type of the property.</typeparam>
 /// <param name="fixture">The fixture.</param>
 /// <param name="key">The key.</param>
 /// <param name="propertyAction">The property action.</param>
 /// <returns></returns>
 public static IMvcFunctionalTestFixture HavingConfiguredProperty <TProperty>(
     this IMvcFunctionalTestFixture fixture,
     string key,
     Action <TProperty> propertyAction) =>
 fixture
 .HavingConfiguredProperty <TProperty>(key, out var property)
 .Having(() => propertyAction(property));