Beispiel #1
0
 public DisciplineService(IRepositoryBootstrapper repositoryStrategy) : base(repositoryStrategy)
 {
     _cathedraRepo = (IRepository <Cathedra>)repositoryStrategy[typeof(Cathedra)];
     _groupRepo    = (IRepository <Group>)repositoryStrategy[typeof(Group)];
     _userRepo     = (IRepository <User>)repositoryStrategy[typeof(User)];
     _settingRepo  = (IRepository <Setting>)repositoryStrategy[typeof(Setting)];
 }
Beispiel #2
0
 public CathedraService(IRepositoryBootstrapper repositoryStrategy) : base(repositoryStrategy)
 {
     _disciplineRepo = (IRepository <Discipline>)repositoryStrategy[typeof(Discipline)];
 }
Beispiel #3
0
 public BaseService(IRepositoryBootstrapper repositoryBootstrapper)
 {
     RepositoryResolver = repositoryBootstrapper;
     Repository         = (IRepository <TEntity>)repositoryBootstrapper[typeof(TEntity)];//fix
 }
Beispiel #4
0
 public UserService(IRepositoryBootstrapper repositoryStrategy) : base(repositoryStrategy)
 {
     _groupService = (IRepository <Group>)repositoryStrategy[typeof(Group)];
 }
Beispiel #5
0
 public ServiceFactory(IRepositoryBootstrapper bootstrapper)
 {
     _bootstrapper = bootstrapper;
 }
Beispiel #6
0
 public SettingService(IRepositoryBootstrapper repositoryBootstrapper) : base(repositoryBootstrapper)
 {
 }
Beispiel #7
0
 public GroupService(IRepositoryBootstrapper repositoryBootstrapper) : base(repositoryBootstrapper)
 {
     _cathedraRepo   = (IRepository <Cathedra>)repositoryBootstrapper[typeof(Cathedra)];
     _disciplineRepo = (IRepository <Discipline>)repositoryBootstrapper[typeof(Discipline)];
     _userRepo       = (IRepository <User>)repositoryBootstrapper[typeof(User)];
 }