Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataRepository" /> class.
 /// </summary>
 /// <param name="syngentaSIPContext">The syngenta sip context.</param>
 /// <param name="syngentaSIPSecurityContext">The syngenta sip security context.</param>
 /// <param name="cryptoService">The crypto service.</param>
 /// <param name="syngentaSIPUnitOfWork">The syngenta sip unit of work.</param>
 public DataRepository(ISyngentaSIPContext syngentaSIPContext, ISyngentaSIPSecurityContext syngentaSIPSecurityContext, ICryptoService cryptoService, ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork)
 {
     this.syngentaSIPContext         = syngentaSIPContext;
     this.syngentaSIPSecurityContext = syngentaSIPSecurityContext;
     this.cryptoService         = cryptoService;
     this.syngentaSIPUnitOfWork = syngentaSIPUnitOfWork;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SyngentaSIPUnitOfWork"/> class.
 /// </summary>
 /// <param name="syngentaSIPContext">The syngenta sip context.</param>
 /// <param name="syngentaSIPSecurity">The syngenta sip security.</param>
 /// <param name="userRepository">The user repository.</param>
 /// <param name="planRepository">The plan repository.</param>
 /// <param name="dataRepository">The data repository.</param>
 /// <param name="applicationSettingRepository">The application setting repository.</param>
 public SyngentaSIPUnitOfWork(
     ISyngentaSIPContext syngentaSIPContext,
     ISyngentaSIPSecurityContext syngentaSIPSecurity,
     Func <IUserRepository> userRepository,
     Func <IPlanRepository> planRepository,
     Func <IDataRepository> dataRepository,
     Func <IApplicationSettingRepository> applicationSettingRepository,
     Func <IDocumentRepository> documentRepository)
 {
     this.syngentaSIPContext           = syngentaSIPContext;
     this.syngentaSIPSecurity          = syngentaSIPSecurity;
     this.userRepository               = userRepository;
     this.planRepository               = planRepository;
     this.dataRepository               = dataRepository;
     this.applicationSettingRepository = applicationSettingRepository;
     this.documentRepository           = documentRepository;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentRepository"/> class.
 /// </summary>
 /// <param name="syngentaSIPContext">The syngenta sip context.</param>
 /// <param name="syngentaSIPSecurityContext">The syngenta sip security context.</param>
 /// <param name="syngentaSIPUnitOfWork">The syngenta sip unit of work.</param>
 public DocumentRepository(ISyngentaSIPContext syngentaSIPContext, ISyngentaSIPSecurityContext syngentaSIPSecurityContext, ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork)
 {
     this.syngentaSIPContext         = syngentaSIPContext;
     this.syngentaSIPSecurityContext = syngentaSIPSecurityContext;
     this.syngentaSIPUnitOfWork      = syngentaSIPUnitOfWork;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserRepository" /> class.
 /// </summary>
 /// <param name="syngentaSIPContext">The syngenta sip context.</param>
 /// <param name="cryptoService">The crypto service.</param>
 /// <param name="applicationSettingRepository">The application setting repository.</param>
 public UserRepository(ISyngentaSIPContext syngentaSIPContext, ICryptoService cryptoService, IApplicationSettingRepository applicationSetting)
 {
     this.syngentaSIPContext  = syngentaSIPContext;
     this.cryptoService       = cryptoService;
     this.applicationSettings = applicationSetting;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlanRepository"/> class.
 /// </summary>
 /// <param name="syngentaSIPContext">The syngenta sip context.</param>
 public PlanRepository(ISyngentaSIPContext syngentaSIPContext)
 {
     this.syngentaSIPContext = syngentaSIPContext;
 }