public AccountController(IWebSecurityService userService, IPersonService personService, IEmailHelper emailHelper, IAccountService accountService) { this.userService = userService; this.personService = personService; this.emailHelper = emailHelper; this.accountService = accountService; }
public MainViewModel(IImagineCupService imagineCupService, IPersonService personService, IDreamsparkService dreamsparkService, IBlogService blogService) { _personService = personService; _imagineCupService = imagineCupService; _dreamsparkService = dreamsparkService; _blogService = blogService; blogLoaded = teamLoaded = false; ProgressBarVisibility = "Visible"; IsIndeterminate = "True"; GridVisibility = "Collapsed"; ProgressRingVisibility = "Visible"; ProgressRingActive = "True"; LoadPeople(); LoadEntries(); ImagineCupDescription = _imagineCupService.GetDescription(); ImagineCupImage = _imagineCupService.GetImageUrl(); Prizes = _imagineCupService.GetPrizes(); DreamsparkDescription = _dreamsparkService.GetBriefDescription(); }
public PersonDirectoryViewModel(IPersonService personService, IDispatcher dispatcher, IEventAggregator aggregator, IDialogService dialogService) : base(personService, dispatcher, aggregator, dialogService) { personDirectory = new RangeEnabledObservableCollection<Person>(); aggregator.GetEvent<PersonDirectoryUpdatedEvent>().Subscribe(OnPersonDirectoryUpdated, ThreadOption.BackgroundThread); aggregator.GetEvent<PersonDeletedEvent>().Subscribe(OnPersonDeleted, ThreadOption.UIThread); }
public PersonReportService(ICommandExecutor executor, IRepository<Domain.Entity.User> userRepository, IPersonService personService) { _executor = executor; _personService = personService; _userRepository = userRepository; _userSession = new UserSession(); }
public ViewModelBase(IPersonService personService, IDispatcher dispatcher, IEventAggregator aggregator, IDialogService dialogService) { if (personService == null) { throw new ArgumentNullException("personService"); } if (dispatcher == null) { throw new ArgumentNullException("dispatcher"); } if (aggregator == null) { throw new ArgumentNullException("aggregator"); } if (dialogService == null) { throw new ArgumentNullException("dialogService"); } this.personService = personService; this.dispatcher = dispatcher; this.aggregator = aggregator; this.dialogService = dialogService; isBusy = false; }
public PersonController() { var permissionRepository = new PermissionRepository(); var churchRepository = new ChurchRepository(); _personRepository = new PersonRepository(permissionRepository, churchRepository); var emailSender = new EmailSender(new MessageRepository(), new MessageRecepientRepository(), new MessageAttachmentRepository(), _personRepository); var churchEmailTemplateRepository = new ChurchEmailTemplatesRepository(); var emailService = new EmailService(new UsernamePasswordRepository(permissionRepository), _personRepository, new GroupRepository(), emailSender, new EmailContentService(new EmailContentRepository()), churchEmailTemplateRepository, permissionRepository); var uploadPhotoRepository = new PhotoRepository(); _personService = new PersonService( _personRepository, new PersonGroupRepository(_personRepository), permissionRepository, new PersonRoleRepository(), new PersonOptionalFieldRepository(), new RelationshipRepository(_personRepository), new ChurchMatcherRepository(), new GroupRepository(), new FamilyRepository(uploadPhotoRepository), emailService, new AddressRepository(), uploadPhotoRepository ); }
public HomeTask(ICountryService countryService, IPersonService personService, IMenuService menuService, IUserService userService) { this.countryService = countryService; this.personService = personService; this.menuService = menuService; this.userService = userService; }
private static void RunAllPersons(IPersonService client) { Console.WriteLine("All persons"); var persons = client.GetAllPersons(); ShowPersons(persons); }
public PersonCommandService(IPersonService personService, IUnitOfWork unitOfWork, ICommandExecutor executor) { _personService = personService; _unitOfWork = unitOfWork; _executor = executor; _userSession = new UserSession(); }
public MainViewModel(IPersonService personService) { _personService = personService; _people = new ObservableCollection<PersonHeaderViewModel>(); var task = _personService.LoadPeople(); task.ContinueWith(t => { DispatcherHelper.CheckBeginInvokeOnUI(delegate { foreach (var person in t.Result) _people.Add(new PersonHeaderViewModel { Id = person.Id, FullName = String.Format("{0}, {1}", person.LastName, person.FirstName) }); }); }); MessengerInstance.Register<PersonNameChanged>(this, message => { var person = _people.FirstOrDefault(p => p.Id == message.PersonId); if (person != null) person.FullName = String.Format("{0}, {1}", message.LastName, message.FirstName) }); }
public TripService(IEventParticipantService eventParticipant, IDonationService donationService, IGroupService groupService, IFormSubmissionService formSubmissionService, MinistryPlatform.Translation.Services.Interfaces.IEventService eventService, IDonorService donorService, IPledgeService pledgeService, ICampaignService campaignService, IPrivateInviteService privateInviteService, ICommunicationService communicationService, IContactService contactService, IContactRelationshipService contactRelationshipService, IConfigurationWrapper configurationWrapper, IPersonService personService, IServeService serveService, IDestinationService destinationService) { _eventParticipantService = eventParticipant; _donationService = donationService; _groupService = groupService; _formSubmissionService = formSubmissionService; _mpEventService = eventService; _mpDonorService = donorService; _mpPledgeService = pledgeService; _campaignService = campaignService; _privateInviteService = privateInviteService; _communicationService = communicationService; _contactService = contactService; _contactRelationshipService = contactRelationshipService; _configurationWrapper = configurationWrapper; _personService = personService; _serveService = serveService; _destinationService = destinationService; }
public static AttendeeListViewModel Create(Seminar seminar, IPersonService personService, string siteId) { Check.Require(seminar != null, "seminar is required."); Check.Require(personService != null, "personService is required."); var viewModel = new AttendeeListViewModel() { Seminar = seminar, }; // pull the invitation list var invitations = viewModel.Seminar.Invitations.Where(a => a.Seminar.Site.Id == siteId).Select(a => a.Person).ToList(); // pull applications var applications = viewModel.Seminar.Applications.Where(a => a.Seminar.Site.Id == siteId).ToList(); // pull seminar people var seminarPeople = viewModel.Seminar.SeminarPeople; var people = new List<DisplayPerson>(); people.AddRange(DetermineParticipation(personService, seminarPeople.Where(a => a.Paid).Select(a => a.Person).ToList(), siteId, registered: true)); people.AddRange(DetermineParticipation(personService, seminarPeople.Where(a => !a.Paid).Select(a => a.Person).ToList(), siteId, accepted: true)); people.AddRange(DetermineParticipation(personService, applications.Where(a => !a.IsPending && !a.IsApproved).Select(a => a.User.Person).ToList(), siteId, denied: true)); people.AddRange(DetermineParticipation(personService, applications.Where(a => a.IsPending).Select(a => a.User.Person).ToList(), siteId, applied: true)); people.AddRange(DetermineParticipation(personService, invitations.Where(a => !people.Select(b => b.Person).Contains(a)).ToList(), siteId, invite: true)); viewModel.SeminarPeople = people; return viewModel; }
public MainViewModel(IPersonService personService, IEventAggregator evt) { this.Users = new ObservableCollection<Testtable>(); this.personService = personService; this.evt = evt; AddUsers(personService.GetAllPersons()); }
private static void RunAllLivingPersons(IPersonService client) { Console.WriteLine("All living persons"); Expression<Func<Person, bool>> expression = p => p.DeathDate == null; var persons = client.FindPersons(expression.ToExpressionNode()); ShowPersons(persons); }
private static void RunAllMalePersons(IPersonService client) { Console.WriteLine("All male persons"); Expression<Func<Person, bool>> expression = p => p.Gender == Gender.Male; var persons = client.FindPersons(expression.ToExpressionNode()); ShowPersons(persons); }
public MainWindowViewModel(IPersonService personService, IDispatcher dispatcher, IEventAggregator aggregator, IDialogService dialogService) : base(personService, dispatcher, aggregator, dialogService) { PersonDirectoryViewModel = new PersonDirectoryViewModel(personService, dispatcher, aggregator, dialogService); PersonDetailsViewModel = new PersonDetailsViewModel(personService, dispatcher, aggregator, dialogService); AppStartCommand = new AsyncCommand(PersonDirectoryViewModel.RefreshAsync); }
public CaseStudyController(IRepository<CaseStudy> casestudyRepository, IRepository<Seminar> seminarRepository, IRepositoryWithTypedId<User, Guid> userRepository, IRepository<SeminarPerson> seminarPersonRepository, IPersonService personService) { _casestudyRepository = casestudyRepository; _seminarRepository = seminarRepository; _userRepository = userRepository; _seminarPersonRepository = seminarPersonRepository; _personService = personService; }
public FrmNotes(INotesManagerService notesService, IPersonService service) { _service = service; InitializeComponent(); _presenter = new NotesManagerPresenter(this, notesService, _service); LoadAllNotes(); RegisterViewEvents(); }
public WidgetController(IBus bus, IWidgetDetailsService widgetDetailsService, IPersonService personService, IVersionService versionService, IVersionRolesService versionRolesService) { _bus = bus; _widgetDetailsService = widgetDetailsService; _personService = personService; _versionService = versionService; _versionRolesService = versionRolesService; }
private static void RunAllPersonsFromJapan(IPersonService client) { Console.WriteLine("All persons from Japan"); Expression<Func<Person, bool>> expression = p => p.Residence == "Japan"; var persons = client.FindPersons(expression.ToExpressionNode()); ShowPersons(persons); }
private static void RunAllPersonsOfAge100(IPersonService client) { Console.WriteLine("All persons of Age >= 100"); Expression<Func<Person, bool>> expression = p => p.Age >= 100; var persons = client.FindPersons(expression.ToExpressionNode()); ShowPersons(persons); }
public PersonDetailsViewModel(IPersonService personService, IDispatcher dispatcher, IEventAggregator aggregator, IDialogService dialogService) : base(personService, dispatcher, aggregator, dialogService) { aggregator.GetEvent<SelectedPersonChangeEvent>().Subscribe(OnSelectedPersonChanged, ThreadOption.BackgroundThread); NewPersonCommand = new DelegateCommand(NewPerson); EditPersonCommand = new DelegateCommand(EditPerson, CanEditPerson); DeletePersonCommand = new DelegateCommand(DeletePerson, CanDeletePerson); }
public DetailViewModel(IEventAggregator evt, IPersonService personService) { this.evt = evt; this.personService = personService; ListaTipova = new ObservableCollection<Testtable2>( personService.GetAllPersonTypes()); evt.GetEvent<SelectedListEvent>().Subscribe(AddNewSelected); }
public WorkerController(IWorkerService workerService, IPersonService personService, IImageService imageServ, IWorkerCache wc) { this.wcache = wc; this.serv = workerService; this.imageServ = imageServ; }
public HomeController(IPersonService personService) { /* IEnumerable<Person> people = personService.GetAll(); Person person; for (int i = 0; i < 100; i++) { person = people.ElementAt(i); Trace.WriteLine(string.Format("{0} {1}", person.FirstName, person.LastName)); }*/ }
public SeminarApplicationController(IRepository<Application> applicationRepository, IFirmService firmService, INotificationService notificationService, IEventService eventService, IPictureService pictureService, IPersonService personService, IRepositoryFactory repositoryFactory) { _applicationRepository = applicationRepository; _firmService = firmService; _notificationService = notificationService; _eventService = eventService; _pictureService = pictureService; _personService = personService; _repositoryFactory = repositoryFactory; }
public OrganizationService(IUnitOfWork unitOfWork, IOrganizationRepository organizationRepository, IPersonService personService, IWebSecurityService userService, IEmailHelper emailHelper, ILocationRepository locationRepository, ISubscriptionService subscriptionService, ICategoryService categoryService) { this.unitOfWork = unitOfWork; this.organizationRepository = organizationRepository; this.personService = personService; this.userService = userService; this.emailHelper = emailHelper; this.locationRepository = locationRepository; this.subscriptionService = subscriptionService; this.categoryService = categoryService; }
public AccountController(IWebSecurityService webSecurityService, IPersonService personService, IAccountService accountService, IEmailHelper emailHelper, IWorkflowInstanceService workflowInstanceService, IWorkflowService workflowService) { this.webSecurityService = webSecurityService; this.personService = personService; this.accountService = accountService; this.emailHelper = emailHelper; this.workflowInstanceService = workflowInstanceService; this.workflowService = workflowService; Boolean.TryParse(ConfigurationManager.AppSettings["RequireSignUpVerification"], out requireVerification); }
public EchipaViewModel(IPersonService personService) { _personService = personService; MembriVisibility = "Collapsed"; AlumnusVisibility = "Collapsed"; WannabeVisibility = "Collapsed"; ProgressBarVisibility = "Visible"; IsIndeterminate = "True"; LoadPeople(); }
public AttendeeController(IRepository<Seminar> seminarRespository, IRepositoryWithTypedId<User, Guid> userRepository, IRepository<SeminarPerson> seminarPersonRepository , IRepository<Person> personRepository, IRepository<Firm> firmRepository , IPersonService personService, IRegistrationService registrationService, IFirmService firmService, Agribusiness.Web.Services.INotificationService notificationService) { _seminarRespository = seminarRespository; _userRepository = userRepository; _seminarPersonRepository = seminarPersonRepository; _personRepository = personRepository; _firmRepository = firmRepository; _personService = personService; _registrationService = registrationService; _firmService = firmService; _notificationService = notificationService; }
public ResetPasswordForm(IPersonService personService) { InitializeComponent(); _personService = personService; }
public ChildcareController(IChildcareService childcareService, IEventService eventService, IPersonService personService, IUserImpersonationService userImpersonationService, IAuthenticationRepository authenticationRepository) : base(userImpersonationService, authenticationRepository) { _childcareService = childcareService; _eventService = eventService; _personService = personService; }
public UsersApiController(IEmailService emailService, IPersonService personService, IAspNetUserRoleService aspNetUserRoleService) { _emailService = emailService; _personService = personService; _aspNetUserRoleService = aspNetUserRoleService; }
public PersonController(IPersonService personService, IMapper mapper) { this.personService = personService; this.mapper = mapper; }
public WorkflowRequest(IPersonService personService, WorkflowMasterVM requestVm) { _personService = personService; _WorkflowMasterVm = requestVm; }
public AttendancesController(IGroupService groupService, IAttendanceService attendanceService, IPersonService personService, IPersonAttendanceService personAttendanceService) { // }
public PersonPostCommand(IPersonService personService, ILogger logger) { _personService = personService; _logger = logger.ForContext <PersonPostCommand>(); }
public ApplicationServicePerson(IPersonService personService, IPersonMapper personMapper) { _personService = personService; _personMapper = personMapper; }
public PersonsController(IPersonService personService) { _personService = personService ?? throw new ArgumentNullException(nameof(personService)); }
public PeopleController(IPersonService personService) => _personService = personService;
public PersonController(IPersonService service, IAutoMappingService mapper) { _service = service; _mapper = mapper; }
public PersonsController( IMapper mapper, IPersonService personService) : base(mapper) { _personService = personService; }
public NotesManagerPresenter(INotesManagerView view, INotesManagerService notesService, IPersonService personService) { _personService = personService; _notesService = notesService; _view = view; }
public AdminProcessesController(IProductService productService, ICategoryService categoryService, IBrandService brandService, IPersonService personService, IProductDetailService productDetailService, ISliderImageService sliderImageService) { _productService = productService; _categoryService = categoryService; _brandService = brandService; _personService = personService; _productDetailService = productDetailService; _sliderImageService = sliderImageService; }
public UserService(TodoContext context, IPersonService personService, IConfiguration config) { _context = context; _config = config; _personService = personService; }
public RegisterPageVM(IPersonService service) { this.service = service; }
public PersonController(IPersonService personService, IMapper mapper) { _personService = personService; _mapper = mapper; }
public PersonFacade(IPersonService personService, IMapper mapper) { _personService = personService; _mapper = mapper; }
public WorkflowRequest(IPersonService personService) { _personService = personService; }
public HomeController(IPersonService personService) { _personService = personService; }
public AdminController(IPersonService personService) { _personService = personService; }
public PersonController(ILogger <PersonController> logger, IPersonService personService) { _logger = logger; _personService = personService; }
// مقدار دهی شی پرسن سرویس در کانستراکتور public PersonController(IPersonService service) { _service = service; }
public PersonsController(IPersonService personService) { _personService = personService; }
public PersonController(IPersonService personService, ILogger <PersonController> logger, IMapper mapper) { this.personService = personService; _logger = logger; _mapper = mapper; }
public PersonController(IPersonService personService) { this.personService = personService; }
public GetAllPersonsHandler(IPersonService service) { this.service = service; }
public LoginController(IPersonService service) { Service = service; }
public AccountController(UserManager <ApplicationUser> userManager, IPersonService personService) { _userManager = userManager; _personService = personService; }
public PersonController(IPersonService personService, ICountryService countryService) { this.personService = personService; this.countryService = countryService; }