コード例 #1
0
        public async Task DownloadSupplierBlocked_Returns_Data()
        {
            var _agencyCode          = "022001000000";
            var _blockSearchCriteria = new BlockSearchCriteria()
            {
                AgencyCode = "022001000000"
            };

            _claims = new Claim[2] {
                new Claim(IdentityConfigs.Claims.isSemiGovAgency, "1"),
                new Claim(IdentityConfigs.Claims.SelectedCR, _agencyCode)
            };
            _blockController = _blockController.WithIdentity(_claims);

            var result = await _blockController.DownloadSupplierBlocked(_blockSearchCriteria);

            Assert.NotNull(result);
            Assert.IsType <byte[]>(result);
        }