Example #1
0
        public async Task Test_GetTemplates()
        {
            ITemplateMessageService templateMessageService = _sp.GetService <ITemplateMessageService>();
            var token = await base.GetAccessToken();

            var templates = await templateMessageService.GetTemplates(token);

            Assert.IsNotNull(templates);
        }
Example #2
0
 public TemplateMessageServiceTest()
 {
     _templateMessageService = new TemplateMessageService(AccountModel);
 }
Example #3
0
        private static string _incantation = "helloxiatian!@#";//访问咒语

        public WeiXinServiceController(IUserQueryService userQueryService,
                                       ITemplateMessageService templateMessageService)
        {
            _userQueryService       = userQueryService;
            _templateMessageService = templateMessageService;
        }
 public TemplateMessageServiceTest()
 {
     _templateMessageService = new TemplateMessageService(AccountModel);
 }