/// <summary> /// Initializes a new instance of the <see cref="SaveTransactionWrapper" /> class. /// </summary> /// <param name="transaction">transaction (required).</param> public SaveTransactionWrapper(SaveTransaction transaction = default(SaveTransaction)) { // to ensure "transaction" is required (not null) if (transaction == null) { throw new InvalidDataException("transaction is a required property for SaveTransactionWrapper and cannot be null"); } else { this.Transaction = transaction; } }
/// <summary> /// Initializes a new instance of the <see cref="SaveTransactionsWrapper" /> class. /// </summary> /// <param name="transaction">transaction.</param> /// <param name="transactions">transactions.</param> public SaveTransactionsWrapper(SaveTransaction transaction = default(SaveTransaction), List <SaveTransaction> transactions = default(List <SaveTransaction>)) { this.Transaction = transaction; this.Transactions = transactions; }
/// <summary> /// Initializes a new instance of the <see cref="SaveTransactionWrapper" /> class. /// </summary> /// <param name="transaction">transaction (required).</param> public SaveTransactionWrapper(SaveTransaction transaction = default(SaveTransaction)) { // to ensure "transaction" is required (not null) this.Transaction = transaction ?? throw new ArgumentNullException("transaction is a required property for SaveTransactionWrapper and cannot be null"); }