Esempio n. 1
0
 public OauthCallsRepositoryTest()
 {
     _componentContext               = AutofacConfig.RegisterDependancies();
     _oauthCallsRepository           = _componentContext.Resolve <IOauthCallsRepository>();
     _mockHttpClient                 = _componentContext.Resolve <Mock <IHttpClientService> >();
     _stringConstant                 = _componentContext.Resolve <IStringConstantRepository>();
     _oauthCallHttpContextRepository = _componentContext.Resolve <IOauthCallHttpContextRespository>();
     _mockHttpContextBase            = _componentContext.Resolve <Mock <HttpContextBase> >();
     _userManager           = _componentContext.Resolve <ApplicationUserManager>();
     _mockServiceRepository = _componentContext.Resolve <Mock <IServiceRepository> >();
 }
Esempio n. 2
0
 public MailSettingDetailsByProjectAndModuleRepository(IRepository <MailSetting> mailSettingDataRepository,
                                                       IRepository <MailSettingMapping> mailSettingMappingDataRepository, IRepository <GroupEmailMapping> groupEmailMappingDataRepository,
                                                       IRepository <Group> groupDataRepository, IOauthCallsRepository oauthCallRepository, IAttachmentRepository attachmentRepository,
                                                       ApplicationUserManager userManager)
 {
     _mailSettingDataRepository        = mailSettingDataRepository;
     _mailSettingMappingDataRepository = mailSettingMappingDataRepository;
     _groupEmailMappingDataRepository  = groupEmailMappingDataRepository;
     _groupDataRepository  = groupDataRepository;
     _oauthCallRepository  = oauthCallRepository;
     _attachmentRepository = attachmentRepository;
     _userManager          = userManager;
 }
Esempio n. 3
0
 public ScrumSetUpRepository(
     ISlackChannelRepository slackChannelRepository,
     IOauthCallsRepository oauthCallsRepository,
     IStringConstantRepository stringConstant,
     IRepository <ApplicationUser> applicationUser,
     IAttachmentRepository attachmentRepository)
     : base(applicationUser, attachmentRepository)
 {
     _slackChannelRepository = slackChannelRepository;
     _oauthCallsRepository   = oauthCallsRepository;
     _stringConstant         = stringConstant;
     _applicationUser        = applicationUser;
     _logger = LogManager.GetLogger("ScrumBotModule");
 }
 public SlackRepository(ILeaveRequestRepository leaveRepository, IOauthCallsRepository oauthCallsRepository,
                        ISlackUserRepository slackUserRepository, IClient clientRepository, IStringConstantRepository stringConstant,
                        IAttachmentRepository attachmentRepository, IRepository <ApplicationUser> userManagerRepository,
                        IRepository <IncomingWebHook> incomingWebHookRepository, IEmailServiceTemplateRepository emailTemplateRepository,
                        IEmailService emailService)
 {
     _oauthCallsRepository      = oauthCallsRepository;
     _leaveRepository           = leaveRepository;
     _clientRepository          = clientRepository;
     _stringConstant            = stringConstant;
     _attachmentRepository      = attachmentRepository;
     _userManagerRepository     = userManagerRepository;
     _slackUserRepository       = slackUserRepository;
     _incomingWebHookRepository = incomingWebHookRepository;
     _emailTemplateRepository   = emailTemplateRepository;
     _emailService = emailService;
     _logger       = LogManager.GetLogger("SlackRepository");
 }
 public Client(IOauthCallsRepository oauthCallRepository, IStringConstantRepository stringConstant,
               IEmailService emailService, IAttachmentRepository attachmentRepository, IHttpClientService httpClientService,
               IEnvironmentVariableRepository envVariableRepository, ISlackUserRepository slackUserRepository,
               IEmailServiceTemplateRepository emailTemplateRepository, IRepository <IncomingWebHook> incomingWebHook,
               ApplicationUserManager userManager, IMailSettingDetailsByProjectAndModuleRepository mailSettingDetails)
 {
     _stringConstant          = stringConstant;
     _oauthCallRepository     = oauthCallRepository;
     _emailService            = emailService;
     _attachmentRepository    = attachmentRepository;
     _httpClientService       = httpClientService;
     _envVariableRepository   = envVariableRepository;
     _slackUserRepository     = slackUserRepository;
     _emailTemplateRepository = emailTemplateRepository;
     _incomingWebHook         = incomingWebHook;
     _userManager             = userManager;
     _mailSettingDetails      = mailSettingDetails;
     _logger = LogManager.GetLogger("ClientRepository");
 }
 public TaskMailRepository(IRepository <TaskMail> taskMailRepository, IStringConstantRepository stringConstant,
                           IOauthCallsRepository oauthCallsRepository, IRepository <TaskMailDetails> taskMailDetailRepository,
                           IAttachmentRepository attachmentRepository, IRepository <ApplicationUser> userRepository, IEmailService emailService,
                           IBotQuestionRepository botQuestionRepository, ApplicationUserManager userManager,
                           IEmailServiceTemplateRepository emailServiceTemplate, ILogger logger, IRepository <MailSetting> mailSettingDataRepository,
                           IMailSettingDetailsByProjectAndModuleRepository mailSettingDetails)
 {
     _taskMailRepository       = taskMailRepository;
     _stringConstant           = stringConstant;
     _oauthCallsRepository     = oauthCallsRepository;
     _taskMailDetailRepository = taskMailDetailRepository;
     _attachmentRepository     = attachmentRepository;
     _userRepository           = userRepository;
     _emailService             = emailService;
     _botQuestionRepository    = botQuestionRepository;
     _userManager          = userManager;
     _emailServiceTemplate = emailServiceTemplate;
     _logger = logger;
     _mailSettingDataRepository = mailSettingDataRepository;
     _mailSettingDetails        = mailSettingDetails;
 }