Пример #1
0
        public async Task GetAllAuditorUsers_ReturnsData()
        {
            var _agencyCode = "022001000000";
            _claims = new Claim[2] {
                new Claim(IdentityConfigs.Claims.isSemiGovAgency, "1"),
                new Claim(IdentityConfigs.Claims.SelectedCR, _agencyCode)
            };
            _lookupController = _lookupController.WithIdentity(_claims);

            var result = await _lookupController.GetAllAuditorUsers();

            Assert.NotNull(result);
            Assert.IsType<List<UserLookupModel>>(result);
            Assert.NotEmpty(result);
        }