public void Convert_Count_MoreThen_0() { //Arrange Response <Payment> response = new Response <Payment>() { Data = new List <Payment>() { new Payment() { Token = "token" } } }; ResponseApiPaymentToListPaymentConverter converter = new ResponseApiPaymentToListPaymentConverter(response); //Act List <Server.Database.Model.Payment> result = converter.Convert(); //Assert Assert.True(result.Count > 0); }
public PaymentApiWorker() { _api = new HyperWalletLibrary.Api.Payment(Account.HyperWalletAccount); _paymentToApiPayment = new PaymentToApiPaymentConverter(); _responseApiPaymentToListPayment = new ResponseApiPaymentToListPaymentConverter(); }