public UserService(IPeopleService peopleService, ISMSDbContextGenericRepository <User> userRepo, ICipherService cipherService, IMapper mapper) { _peopleService = peopleService; _userRepo = userRepo; _cipherService = cipherService; _mapper = mapper; }
public StudentRegistrationService( IPeopleService peopleService, IPopulationService populationService, IUserService userService, IMapper mapper, ISMSDbContextGenericRepository <StudentInformation> studentRepo, IEMPublisher eventPublisher ) { _peopleService = peopleService; _populationService = populationService; _userService = userService; _mapper = mapper; _studentRepo = studentRepo; _eventPublisher = eventPublisher; }
public void Setup() { var services = new ServiceCollection(); services.AddDbContext <SMSDbContext>(options => options.UseSqlServer("Data Source=LAPTOP-3O58F4FN;database=studentManagement_test;trusted_connection=yes;")); services.AddGenericRepositoryScoped(); services.AddScoped(typeof(ISMSDbContextGenericRepository <>), typeof(SMSDbContextGenericRepository <>)); var provider = services.BuildServiceProvider(); _personRepo = provider.GetService <IGenericRepository <SMSDbContext, Person> >(); _studentCourseScoreRepo = provider.GetService <IGenericRepository <SMSDbContext, StudentCourseScore> >(); _personMyRepo = provider.GetService <ISMSDbContextGenericRepository <Person> >(); }
public StudentSearchService(ISMSDbContextGenericRepository <StudentInformation> studentInformationRepo) { _studentInformationRepo = studentInformationRepo; }
public PeopleService(ISMSDbContextGenericRepository <Person> personRepo, IPopulationService populationService, IMapper mapper) { _mapper = mapper; _personRepo = personRepo; _populationService = populationService; }