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); }
public HomeController(ILoggerService loggerService, IMapper mapper, IConfiguration configuration, IRegistrantRepository registrantRepository) { _logger = loggerService; _mapper = mapper; _config = configuration; _registrantRepository = registrantRepository; }
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); }
public RegistrationService(IRegistrantRepository registrantRepo) { this.registrantRepo = registrantRepo; }