示例#1
0
        public async Task GetRequestedUsers_ReturnList_RequestsExists_Happy()
        {
            //Act
            List <Users> result = (List <Users>) await _adminRepository.GetRequestingFarmers();

            CollectionAssert.AllItemsAreInstancesOfType(result, typeof(Users));
        }
示例#2
0
 public async Task GetRequestedUsers_ThrowsException_WhenException_Bad()
 {
     orchard1ContextMock.Setup(a => a.Users).Throws(new GeneralException());
     await Assert.ThrowsExceptionAsync <GeneralException>(async() => await adminRepository.GetRequestingFarmers());
 }
示例#3
0
 public async Task <IEnumerable <Users> > GetRequestingFarmers()
 {
     return(await _AdminData.GetRequestingFarmers());
 }