public static IEnumerable <object[]> InvalidCommands() { yield return(new[] { default(AddFiscalReceiptCommand) }); foreach (var invalidReceipt in FiscalReceiptTestData.InvalidReceipts()) { yield return(new[] { new AddFiscalReceiptCommand { Receipt = invalidReceipt } }); } }
public static IEnumerable <object[]> InvalidReceipts() { return(FiscalReceiptTestData.InvalidReceipts().Select(r => new object[] { r })); }