Exemplo n.º 1
0
 public TestingBase()
 {
     this.context         = new RegistrationContext();
     this.countryRepo     = new CountryRepository(context);
     this.stateRepo       = new StateRepository(context);
     this.registrantRepo  = new RegistrantRepository(context);
     this.addressTypeRepo = new AddressTypeRepository(context);
 }
Exemplo n.º 2
0
 public HomeController(ILoggerService loggerService,
                       IMapper mapper,
                       IConfiguration configuration, IRegistrantRepository registrantRepository)
 {
     _logger = loggerService;
     _mapper = mapper;
     _config = configuration;
     _registrantRepository = registrantRepository;
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
0
 public RegistrationService(IRegistrantRepository registrantRepo)
 {
     this.registrantRepo = registrantRepo;
 }