public PasswordService(IPersonRepository personRepository, IChurchRepository churchRepository, IUsernamePasswordRepository usernamePasswordRepository, IEmailService emailService) { _personRepository = personRepository; _churchRepository = churchRepository; _usernamePasswordRepository = usernamePasswordRepository; _emailService = emailService; }
public ChurchController(IMapper mapper, IChurchRepository repository, IUnitOfWork unitOfWork, JeSuisCathoDbContext context) { this.mapper = mapper; this.repository = repository; this.unitOfWork = unitOfWork; this.context = context; }
public ChurchRepositoryTests() { var connection = DbConnectionFactory.CreateTransient(); var context = new ChurchDb(connection); context.DefaultCountries(); context.DefaultCities(); context.DefaultChurches(); _repository = new ChurchRepository(context); }
public AccountController() { var cnString = ConfigurationManager.ConnectionStrings["Login"].ConnectionString; var pepper = ConfigurationManager.AppSettings["Pepper"]; this.accountRepository = new AccountRepository(cnString, pepper); var cnDefault = ConfigurationManager.ConnectionStrings["Default"].ConnectionString; this.churchRepository = new ChurchRepository(cnDefault); }
public ImportService(string connectingString, IChurchRepository churchRepo , ITeamRepository teamRepo , IMemberRepository memberRepo , IMessageRepository messageRepo , ICommonRepository commonRepo , ILogger logger , IImportRepository importRepo) { this.connectingString = connectingString; this.churchRepo = churchRepo; this.teamRepo = teamRepo; this.commonRepo = commonRepo; this.memberRepo = memberRepo; this.messageRepo = messageRepo; this.logger = logger; this.importRepo = importRepo; }
public RemindersController() { _reminderService = new ReminderService(new ReminderRepository()); var permissionRepository = new PermissionRepository(); _churchRepository = new ChurchRepository(); var personRepository = new PersonRepository(permissionRepository, _churchRepository); _birthdayAndAnniversaryService = new BirthdayAndAnniversaryService(new BirthdayAndAniversaryRepository()); _emailSender = new EmailSender(new MessageRepository(), new MessageRecepientRepository(), new MessageAttachmentRepository(), personRepository); _monthNames = new Dictionary<int, string> { {1, "January"}, {2, "February"}, {3, "March"}, {4, "April"}, {5, "May"}, {6, "June"}, {7, "July"}, {8, "August"}, {9, "September"}, {10, "October"}, {11, "November"}, {12, "December"} }; }
public SystemAdministratorService(IChurchRepository churchRepository, IPermissionRepository permissionRepository) { _churchRepository = churchRepository; _permissionRepository = permissionRepository; }
public ChurchCommandHandler(IUnitOfWork uow, IBus bus, INotificationHandler <DomainNotification> notification, IChurchRepository churchRepository) : base(uow, bus, notification) => _churchRepository = churchRepository;
public AccountController(IAccountRepository repository, IChurchRepository churchRepository, ILogger logger) { this.repository = repository; this.logger = logger; this.churchRepository = churchRepository; }
public ChurchController(IChurchRepository repository, ICommonRepository commonRepository, ILogger logger) { _repository = repository; _logger = logger; _commonRepository = commonRepository; }
public SearchController(IChurchRepository churchRepository) { _churchRepository = churchRepository; }
public ChurchService(IChurchRepository repository) { _repository = repository; }
public PersonRepository(IPermissionRepository permissionRepository, IChurchRepository churchRepository) { _permissionRepository = permissionRepository; _churchRepository = churchRepository; }