public override void Given()
        {
            Uprn = 1234567895;

            _expectedApiResult = new PostcodeLookupResult
            {
                AddressResult = new List <AddressResult>
                {
                    new AddressResult
                    {
                        DeliveryPointAddress = new DeliveryPointAddress
                        {
                            Uprn             = "1234567895",
                            FormattedAddress = "Test line 1, Test line 2, Test town, xx1 1xx",
                            OrganisationName = "Test org name",
                            BuildingNumber   = "Test line 1",
                            ThroughfareName  = "Test line 2",
                            Town             = "Test town",
                            Postcode         = "xx1 1xx"
                        }
                    }
                }
            };
            OrdnanceSurveyApiClient.GetAddressByUprnAsync(Uprn).Returns(_expectedApiResult);
        }
        public override void Setup()
        {
            _configuration = new ResultsAndCertificationConfiguration
            {
                OrdnanceSurveyApiSettings = new OrdnanceSurveyApiSettings {
                    PlacesUri = "http://os.api.com", PlacesKey = "test"
                }
            };

            _mockHttpResult = new PostcodeLookupResult
            {
                AddressResult = new List <AddressResult>
                {
                    new AddressResult
                    {
                        DeliveryPointAddress = new DeliveryPointAddress
                        {
                            Uprn             = "1234567895",
                            FormattedAddress = "Test line 1, Test line 2, Test town, xx1 1xx",
                            OrganisationName = "Test org name",
                            SubBuildingName  = "Sub building",
                            BuildingName     = "Test building name",
                            BuildingNumber   = "Test line 1",
                            ThroughfareName  = "Test line 2",
                            Town             = "Test town",
                            Postcode         = "xx1 1xx"
                        }
                    }
                }
            };
        }
 public async override Task When()
 {
     _result = await _apiClient.GetAddressesByPostcodeAsync(_postcode);
 }
 public async override Task When()
 {
     _result = await _apiClient.GetAddressByUprnAsync(_uprn);
 }