public CustomerDetailsViewModel Build(CustomerDetailConfiguration configuration)
        {
            var viewModel = new CustomerDetailsViewModel()
            {
                Configuration = configuration
            };

            viewModel = _viewModelMapper.Map(viewModel, _serviceResponse);
            return(viewModel);
        }
        public CustomerDetailsViewModel Build(CustomerDetailConfiguration configuration)
        {
            if (configuration == null)
            {
                _logger.OnArgumentNullOrEmpty(new Dictionary <string, object> {
                    { nameof(configuration), null }
                });
            }
            var viewModel = new CustomerDetailsViewModel();

            viewModel = _viewModelMapper.Map(viewModel, _serviceResponse);
            return(viewModel);
        }
Example #3
0
        public void map_customer_details_from_service_response_to_customerdetailsviewmodel()
        {
            var result = _mapper.Map(_viewModel, _serviceResponse);

            Assert.That(result, Is.Not.Null);
        }