Esempio n. 1
0
        public void Setup()
        {
            var logger = new Logger();

            _mapper          = new CustomerDetailViewModelMapper(logger);
            _viewModel       = new CustomerDetailsViewModel();
            _serviceResponse = new ServiceResponse <CustomerEntity>(FakeCustomerDetails.CustomerDetails())
            {
                IsSuccess = true
            };
        }
Esempio n. 2
0
        public void Setup()
        {
            var logger          = new Logger();
            var mapper          = new CustomerDetailViewModelMapper(logger);
            var serviceResponse = new ServiceResponse <CustomerEntity>(FakeCustomerDetails.CustomerDetails())
            {
                IsSuccess = true
            };

            _configuration    = new CustomerDetailConfiguration();
            _viewModelBuilder = new CustomerDetailViewModelBuilder(serviceResponse, mapper);
        }
        public void Setup()
        {
            var logger          = new Logger();
            var mapper          = new CustomerDetailViewModelMapper(logger);
            var serviceResponse = new ServiceResponse <CustomerEntity>(FakeCustomerDetails.CustomerDetails())
            {
                IsSuccess = true
            };

            _configuration = new CustomerDetailConfiguration()
            {
                Format = "dd/MM/yyyy"
            };
            var viewModelBuilder = new CustomerDetailViewModelBuilder(serviceResponse, mapper);

            _validateBuilderConfiguration = new ValidateBuilderConfiguration <CustomerDetailConfiguration, CustomerDetailsViewModel>(viewModelBuilder, logger);
        }