public async Task Test_GetTemplates() { ITemplateMessageService templateMessageService = _sp.GetService <ITemplateMessageService>(); var token = await base.GetAccessToken(); var templates = await templateMessageService.GetTemplates(token); Assert.IsNotNull(templates); }
public TemplateMessageServiceTest() { _templateMessageService = new TemplateMessageService(AccountModel); }
private static string _incantation = "helloxiatian!@#";//访问咒语 public WeiXinServiceController(IUserQueryService userQueryService, ITemplateMessageService templateMessageService) { _userQueryService = userQueryService; _templateMessageService = templateMessageService; }