示例#1
0
        public void Get_organisation_website_address_both_sources_returning()
        {
            var ukrlpWebsite = "www.UkrlpWebsite.co.uk";
            var applyWebsite = "www.ApplyWebsite.co.uk";

            SetupQnAClient(ukrlpWebsite, applyWebsite);
            var actualResult = _controller.GetOrganisationWebsiteAddress(_applicationId).Result;

            Assert.AreEqual(ukrlpWebsite, actualResult);
        }
示例#2
0
 public void GetWebsiteAddress_QnaUnavailable_ThrowsException()
 {
     _controller = new GatewayChecksController(null, _logger.Object, _lookupService.Object);
     Assert.ThrowsAsync <ServiceUnavailableException>(() => _controller.GetOrganisationWebsiteAddress(_applicationId));
 }