Ejemplo n.º 1
0
 /// <summary>
 /// Configures the mock breakfast item repository to return a relevant breakfast item
 /// when called with the specified breakfast item type.
 /// </summary>
 public static ITestFixture HavingBreakfastItem(this ITestFixture fixture, BreakfastItemType type, out BreakfastItem item) =>
 fixture.HavingMockedAsync <IBreakfastItemRepository, BreakfastItem>(x => x.GetBreakfastItemAsync(type),
                                                                     out item,
                                                                     (f, m) =>
 {
     m.Type = type;
     m.Name = type.ToString();
 });