Exemplo n.º 1
0
            public ValidStatusChanges()
            {
                var date   = new DateTime(2020, 3, 1);
                var amount = 10;

                paymentRequest = PaymentRequest.NewPendingPaymentRequest(date, amount);
            }
Exemplo n.º 2
0
        public void PaymentRequest_NewPendingPaymentRequest()
        {
            var date   = new DateTime(2020, 3, 1);
            var amount = 10;

            var model = PaymentRequest.NewPendingPaymentRequest(date, amount);

            Assert.Equal(date, model.Date);
            Assert.Equal(amount, model.Amount);
            Assert.Equal(PaymentStatus.Pending, model.Status);
            Assert.True(string.IsNullOrEmpty(model.Reason));
        }