public static IEnumerable <object[]> InvalidCommands()
        {
            yield return(new[] { default(AddFiscalReceiptCommand) });

            foreach (var invalidReceipt in FiscalReceiptTestData.InvalidReceipts())
            {
                yield return(new[] { new AddFiscalReceiptCommand {
                                         Receipt = invalidReceipt
                                     } });
            }
        }
Пример #2
0
 public static IEnumerable <object[]> InvalidReceipts()
 {
     return(FiscalReceiptTestData.InvalidReceipts().Select(r => new object[] { r }));
 }