private IValidation <ICustomer> GetCustomerValidation()
        {
            MessagerLogger messagerLogger = new MessagerLogger();

            MessageLogger = messagerLogger;

            return(new CustomerValidation(MessageLogger));
        }
Exemplo n.º 2
0
 public CustomerDetailViewModel(ICustomerRepository customerRepository, IValidation <ICustomer> customerValidation,
                                IMessagerLogger messagerLogger)
 {
     InitialViewModel();
     CustomerRepository = customerRepository;
     CustomerValidation = customerValidation;
     MessagerLogger     = messagerLogger;
 }
 public CustomerValidation(IMessagerLogger messagerLogger)
 {
     MessagerLogger = messagerLogger;
 }