Beispiel #1
0
        public async Task Should_FindAllAnnouncementSupplierTemplates()
        {
            MoqUser();
            var searchCriteria = new AgencyAnnouncementSupplierTemplateSearchCriteria();

            var result = await _sut.FindAllAnnouncementSupplierTemplates(searchCriteria);

            Assert.NotNull(result);
        }
 public async Task <QueryResult <AllAnnouncementSupplierTemplateAgencyModel> > GetAllAnnouncementSupplierTemplates(AgencyAnnouncementSupplierTemplateSearchCriteria criteria)
 {
     return(await _announcementQueries.FindAllAnnouncementSupplierTemplates(criteria));
 }
        public async Task <QueryResult <AllAnnouncementSupplierTemplateAgencyModel> > GetAllAnnouncementSupplierTemplates(AgencyAnnouncementSupplierTemplateSearchCriteria criteria)
        {
            criteria.CurrentAgencyCode = User.UserAgency();
            criteria.CurrentBranchId   = User.UserBranch();
            criteria.CurrentRoleName   = User.UserRole();
            var result = await _announcementSupplierTemplateAppService.GetAllAnnouncementSupplierTemplates(criteria);

            return(result);
        }