예제 #1
0
        public async Task GetAllBadgesToApprove()
        {
            var approveBadgeCollection = await ApproveBadgeCollection.GetAllBadgesToApproveAsync();

            Assert.IsNotNull(approveBadgeCollection);
            Assert.IsTrue(approveBadgeCollection.Count >= 1);
        }
예제 #2
0
        public async Task GetSingleBadgesToApprove()
        {
            var approveBadgeCollection = await ApproveBadgeCollection.GetAllBadgesToApproveAsync();

            var approveBadgeItem = await ApproveBadgeItem.GetBadgesToApproveByIdAsync(approveBadgeCollection[0].BadgeId);

            Assert.IsNotNull(approveBadgeItem);
        }
        public virtual async Task <ActionResult> ApproveCommunityBadges()
        {
            var approveBadgeCollection = await ApproveBadgeCollection.GetAllBadgesToApproveAsync();

            var approveCommunityBadgesViewModel = new ApproveCommunityBadgesViewModel(approveBadgeCollection);

            return(View(approveCommunityBadgesViewModel));
        }
        public virtual async Task <ActionResult> ApproveCommunityBadgesList()
        {
            var approveBadgeCollection = await ApproveBadgeCollection.GetAllBadgesToApproveAsync();

            return(PartialView(Mvc.BadgeManager.Views._BadgesForApproval, approveBadgeCollection));
        }