Exemplo n.º 1
0
 public RegistrationController(IMappingEngine mapper, IRegistrationService registrationService, IAddressOptionService addressOptionService, IRegistrantMapper registrantMapper, IRegistrationFormMapper registrationFormMapper, ILog log)
 {
     this.mapper = mapper;
     this.registrationService    = registrationService;
     this.addressOptionService   = addressOptionService;
     this.registrantMapper       = registrantMapper;
     this.registrationFormMapper = registrationFormMapper;
     this.log = log;
 }
Exemplo n.º 2
0
 public TestingBase()
 {
     this.registrationContext  = new RegistrationContext();
     this.registrantRepo       = new RegistrantRepository(registrationContext);
     this.addressRepo          = new AddressTypeRepository(registrationContext);
     this.countryRepo          = new CountryRepository(registrationContext);
     this.stateRepo            = new StateRepository(registrationContext);
     this.registrationService  = new RegistrationService(registrantRepo);
     this.addressOptionService = new AddressOptionService(addressRepo, countryRepo, stateRepo);
 }