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 void Then_Expected_Methods_AreCalled()
 {
     OrdnanceSurveyApiClient.Received(1).GetAddressByUprnAsync(Uprn);
 }
 public override void Given()
 {
     _expectedApiResult = null;
     OrdnanceSurveyApiClient.GetAddressesByPostcodeAsync(Postcode).Returns(_expectedApiResult);
 }
 public void Then_Expected_Methods_AreCalled()
 {
     OrdnanceSurveyApiClient.Received(1).GetAddressesByPostcodeAsync(Postcode);
 }
 public override void Given()
 {
     _expectedApiResult = null;
     OrdnanceSurveyApiClient.GetAddressByUprnAsync(Uprn).Returns(_expectedApiResult);
 }