Пример #1
0
        public async Task GetAllBranchesNotAssignedToCommittee_ReturnsData()
        {
            var _committeeId = 1;
            var _committeType = 1;
            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.GetAllBranchesNotAssignedToCommittee(_committeeId, _committeType);

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