private SubmissionResult SubmitAValidApplication()
        {
            var sut = new CreditCardApplicationServiceReference.CreditCardApplicationServiceClient();

            var a = new CreditCardApplication
            {
                ApplicantName              = ApplicantName,
                ApplicantAgeInYears        = 30,
                AirlineFrequentFlyerNumber = "A1234567"
            };

            return(sut.SubmitApplication(a));
        }
        public void ShouldGetSuccessfulApplicatantsName()
        {
            var sut = new CreditCardApplicationServiceReference.CreditCardApplicationServiceClient();

            var application = new CreditCardApplication {
                ApplicantName = "Jack", ApplicantAgeInYears = 27, AirlineFrequentFlyerNumber = "W1234567"
            };

            var results = sut.SubmitApplication(application);

            Assert.That(results.ValidationErrors, Is.Empty);
            Assert.That(results.ReferenceNumber, Is.Not.Null);

            var successfulApplicant = sut.GetSuccesfulApplicantsName(results.ReferenceNumber.Value);

            Assert.That(successfulApplicant, Is.EqualTo("Jack"));
        }