コード例 #1
0
        public RegisterSuccessfullPayment(AccountNumber accountNumber, BillingResult billingResult)
        {
            Mandate.ParameterNotNullOrEmpty(accountNumber, "accountNumber");
            Mandate.ParameterNotDefaut(billingResult, "billingResult");

            AccountNumber = accountNumber;
            BillingResult = billingResult;
        }
コード例 #2
0
ファイル: BillingResult.cs プロジェクト: AdrianFreemantle/DDD
        public virtual bool Equals(BillingResult other)
        {
            if (null != other && other.GetType() == GetType())
            {
                return other.Paid == Paid
                       && other.Amount == Amount
                       && other.PaymentDate == PaymentDate;
            }

            return false;
        }