public void ShouldMapFromCompleteRequestToCustomerLoans()
        {
            // Arrange
            var input = new CompleteRequest
            {
                Applicant = new Contracts.DataContracts.Applicant { Name = "Fred" },
                ShouldSucceed = true
            };

            // Act
            var result = new GetCustomerLoansInputMapper().Map(input);

            // Assert
            Assert.IsNotNull(result);
        }
        public void ShouldMapFromApplicantToCustomerAccount()
        {
            // Arrange
            var input = new CompleteRequest
            {
                Applicant = new Contracts.DataContracts.Applicant { Name = "Fred" },
                ShouldSucceed = true
            };

            // Act
            var result = new IsEligibleInputMapper().Map(input.Applicant);

            // Assert
            Assert.IsNotNull(result);
        }
        public void ShouldMapFromInputsToCompleteRequest()
        {
            // Arrange
            var request = new CompleteRequest
            {
                Applicant = new Contracts.DataContracts.Applicant { Name = "Fred" },
                ShouldSucceed = true
            };

            var loanNumber = new LoanNumber
            {
                Value = 1
            };

            // Act
            var result = new GetCustomerLoansOutputMapper().Map(request, loanNumber);

            // Assert
            Assert.IsNotNull(result);
        }
 public CompleteResponse Complete(CompleteRequest request)
 {
     var component = container.Resolve<IProcessComponent<CompleteRequest, CompleteResponse>>();
     return component.Process(request);
 }