示例#1
0
        public void Test_StopPayment(TestWorkCard type)
        {
            //prepare
            _type = type;

            _cardPaymentService.AddCardDevice(new CardDeviceMock(type));

            _cardPaymentService.StopPayment();

            _cardPaymentService.RemoveCardDevice();
        }
示例#2
0
        public void Test_ReturnPayment(decimal money, CurrencyCode currency, TestWorkCard type)
        {
            //prepare
            _type = type;

            _amount = Money.Create(money, currency);

            _cardPaymentService.AddCardDevice(new CardDeviceMock(type));

            _cardPaymentService.StartReturnPayment(_amount);

            _cardPaymentService.RemoveCardDevice();
        }
 public CardDeviceMock(TestWorkCard type)
 {
     _type = type;
 }