Beispiel #1
0
        public async Task GetAnnouncementBasicDetails_Returns_Data()
        {
            var _expectedResult = new AnnouncementBasicDetailModel()
            {
                AnnouncementName = "اول قائمة عامة اعلانات قوائم الموردين من مدخل البيانات بدون مدة سريان",
                CreatedBy        = "مدخل وسكرتير نظام المنافسات والمشتريات | 5555555555",
            };

            var result = await _announcementController.GetAnnouncementBasicDetails(1);

            Assert.NotNull(result);
            Assert.IsType <AnnouncementBasicDetailModel>(result);
            Assert.Equal(_expectedResult.AnnouncementName, result.AnnouncementName);
        }
        public async Task <AnnouncementBasicDetailModel> GetAnnouncementBasicDetails(int Id)
        {
            AnnouncementBasicDetailModel detailsModel = await _announcementSupplierTemplateAppService.GetAnnouncementBasicDetailsByAnnouncementId(Id);

            return(detailsModel);
        }