package service

import (
	"testing"

	"xiaoniaokuaiyan.com/xiaoniao/dal"
)

func TestSendSMS(t *testing.T) {
	var (
		mobile  = "18310412106"
		smsType = 6
	)
	smsService := &SMSService{
		dal.DefaultSMSCodeDal,
	}
	_, err := smsService.SendSMS(mobile, smsType, map[string]string{"orderId": "bjtest1469800"})
	if err != nil {
		t.Fatal(err)
	}
}