package com.izouma.nineth.service;

import com.huifu.adapay.core.exception.BaseAdaPayException;
import com.izouma.nineth.ApplicationTests;
import com.izouma.nineth.repo.AdapayMerchantRepo;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class AdapayMerchantServiceTest extends ApplicationTests {
    @Autowired
    private AdapayMerchantRepo    adapayMerchantRepo;
    @Autowired
    private AdapayMerchantService adapayMerchantService;

    @Test
    public void createMemberForAll() throws BaseAdaPayException {
        adapayMerchantService.createMemberForAll("test0301", "15077886171", "熊竹", "321002199408304614");
    }

    @Test
    public void createSettleAccountForAll() throws BaseAdaPayException {
        adapayMerchantService.createSettleAccountForAll("test0301", "熊竹", "321002199408304614", "15077886171", "6222024301070380165");
    }
}