Exemplo n.º 1
0
        public async Task GetAllPreQualifications_ReturnsData()
        {
            var _agencyCode = "022001000000";
            _claims = new Claim[3] {
                new Claim(IdentityConfigs.Claims.BranchId, "1"),
                new Claim(IdentityConfigs.Claims.isSemiGovAgency, "1"),
                new Claim(IdentityConfigs.Claims.SelectedCR, _agencyCode)
            };
            _lookupController = _lookupController.WithIdentity(_claims);

            var result = await _lookupController.GetAllPreQualifications();

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