예제 #1
0
        public void Should_Not_Get_All_Companies_If_Not_Authorized()
        {
            //Arrange
            _companyAppService.PermissionChecker = GetBlockerPermissionsChecker();

            //Act

            Should.Throw <AbpAuthorizationException>(() =>
            {
                _companyAppService.GetAll(new PagedAndSortedResultRequestDto());
            });
        }
예제 #2
0
        public void ShouldNotGetAllCompaniesIfNotAuthorized()
        {
            //Arrange
            companyAppService.PermissionChecker = GetBlockerPermissionsChecker();

            //Act

            Should.Throw <StudioXAuthorizationException>(() =>
            {
                companyAppService.GetAll(new PagedAndSortedResultRequestDto());
            });
        }