public void Test_StopPayment(TestWorkCard type) { //prepare _type = type; _cardPaymentService.AddCardDevice(new CardDeviceMock(type)); _cardPaymentService.StopPayment(); _cardPaymentService.RemoveCardDevice(); }
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; }