public TripCreatedIntegrationEventHandler(IReportingRepository reportingRepository, IDriverRepository driverRepository, IUserRepository userRepository, ILogger <TripCreatedIntegrationEventHandler> logger) { _reportingRepository = reportingRepository ?? throw new ArgumentNullException(nameof(reportingRepository)); _driverRepository = driverRepository ?? throw new ArgumentNullException(nameof(driverRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _logger = logger; }
public DashBoardViewModel(IDomainCommandBus domainCommandBus , IReportingRepository reportingRepository , IReportingUpdatesBus reportingUpdatesBus) : base(Name) { _reportingRepository = reportingRepository; this.domainCommandBus = domainCommandBus; this.Add = new DelegateCommand(o => { this.domainCommandBus.Publish(new AddNewPropertyDomainCommand() { Name = this.newName, Price = this.newPrice }); this.NewName = string.Empty; this.newPrice = 0.0m; }); Observable.FromEventPattern <EventArgs <string> >(reportingUpdatesBus, "Update") .Subscribe(pattern => Dispatcher.BeginInvoke(new Action(RefreshData))); }
public ClientSearchFormPresenter(IClientSearchFormView clientSearchFormView, IClientDetailsPresenter clientDetailsPresenter, IPopupPresenter popupPresenter, IReportingRepository reportingRepository) : base(clientSearchFormView) { _clientSearchFormView = clientSearchFormView; _popupPresenter = popupPresenter; _clientDetailsPresenter = clientDetailsPresenter; _reportingRepository = reportingRepository; }
public void Should_return_zero_search_results() { PatientDto expectedDto = new PatientDto() { Id = Guid.NewGuid(), Name = "Jeff Carley", Status = "Active", Street = "123 Main St", City = "Madison", State = "WI", Zip = "53571" }; var query = new EnumerableQuery <PatientDto>(new List <PatientDto>() { expectedDto }); IReportingRepository <PatientDto> repository = MockRepository.GenerateMock <IReportingRepository <PatientDto> >(); repository.Stub(repo => repo.GetAll()).Return(query); PatientSearchViewModel viewModel = new PatientSearchViewModel(repository); // searchs are exact only viewModel.SearchText = "Jeff"; viewModel.Search.Execute(null); viewModel.PatientResults.ShouldBeEmpty(); }
protected override void Initialize(HttpControllerContext controllerContext) { base.Initialize(controllerContext); _reportingRepo = new ReportingRepository(PowerBiAppContext, Tenant); _adminRepo = new AdminRepository(PowerBiAppContext, Tenant); _veracityApiHelper = new VeracityApiHelper(); }
public FAPTransactionReportQueryHandler( IReportingRepository reportingRepository, IEventRepository eventRepository ) { _reportingRepository = reportingRepository; _eventRepository = eventRepository; }
public EstateAgentNormaliser(ILoggerFactory loggerFactory , IReportingRepository reportingRepository , IReportingUpdatesBus reportingUpdatesBus) { _reportingRepository = reportingRepository; _reportingUpdatesBus = reportingUpdatesBus; _logger = loggerFactory.Create(); }
        public ReportingService(IReportingRepository repository)          {              _repository =  repository;          }
public AllianceModule(IReportingRepository repository) : base(@"alliance/(?<id>[\d]+)") { _repository = repository; Get["/kills"] = x => { //var kills = _repository.QueryFor<IAllianceKillsQuery>(q => q.Id = x.id).Execute(); return Request.Uri; }; Get["/losses"] = x => { return Request.Uri; }; Get["/corps"] = x => { return Request.Uri; }; Get["/ships_weapons"] = x => { return Request.Uri; }; Get["/systems"] = x => { return Request.Uri; }; Get["/corp_kills"] = x => { return Request.Uri; }; Get["/corp_loosses"] = x => { return Request.Uri; }; Get["/corp_kills_class"] = x => { return Request.Uri; }; Get["/corp_losses_class"] = x => { return Request.Uri; }; Get["/pilot_kills"] = x => { return Request.Uri; }; Get["/pilot_loosses"] = x => { return Request.Uri; }; Get["/pilot_kills_class"] = x => { return Request.Uri; }; Get["/pilot_losses_class"] = x => { return Request.Uri; }; }
public AllianceModule(IReportingRepository repository) : base(@"alliance/(?<id>[\d]+)") { _repository = repository; Get["/kills"] = x => { //var kills = _repository.QueryFor<IAllianceKillsQuery>(q => q.Id = x.id).Execute(); return(Request.Uri); }; Get["/losses"] = x => { return(Request.Uri); }; Get["/corps"] = x => { return(Request.Uri); }; Get["/ships_weapons"] = x => { return(Request.Uri); }; Get["/systems"] = x => { return(Request.Uri); }; Get["/corp_kills"] = x => { return(Request.Uri); }; Get["/corp_loosses"] = x => { return(Request.Uri); }; Get["/corp_kills_class"] = x => { return(Request.Uri); }; Get["/corp_losses_class"] = x => { return(Request.Uri); }; Get["/pilot_kills"] = x => { return(Request.Uri); }; Get["/pilot_loosses"] = x => { return(Request.Uri); }; Get["/pilot_kills_class"] = x => { return(Request.Uri); }; Get["/pilot_losses_class"] = x => { return(Request.Uri); }; }
public AccountDetailsPresenter(IAccountDetailsView accountDetailsView, IPopupPresenter popupPresenter, IBus bus, IReportingRepository reportingRepository) : base(accountDetailsView) { _editStep = 0; _accountDetailsView = accountDetailsView; _popupPresenter = popupPresenter; _bus = bus; _reportingRepository = reportingRepository; }
public BucketController(IPostRepository _postRepository, IMediaRepository _mediaRepository, IUserRepository _userRepository, ILocationRepository _locationRepository, IVoteRepository _voteRepository, IReportingRepository _reportingRepository) { postRepository = _postRepository; mediaRepository = _mediaRepository; userRepository = _userRepository; locationRepository = _locationRepository; voteRepository = _voteRepository; reportingRepository = _reportingRepository; }
public InMemorySystemUnderTest(IDomainCommandBus commandBus , IReportingUpdatesBus reportingUpdatesBus , IReportingRepository reportingRepository) { _commandBus = commandBus; _reportingUpdatesBus = reportingUpdatesBus; ReportingRepository = reportingRepository; }
private static void SetupEventHandlers(IBus bus, IReportingRepository<PatientDto> reportingRepository) { var patientEventHandler = new PatientView(reportingRepository); bus.RegisterHandler<PatientCreatedEvent>(patientEventHandler.Handle); bus.RegisterHandler<PatientNameChangedEvent>(patientEventHandler.Handle); bus.RegisterHandler<PatientRelocatedEvent>(patientEventHandler.Handle); //var patientEventPublisher = new PatientEventPublisher(); //bus.RegisterHandler<PatientCreatedEvent>(patientEventPublisher.Handle); }
public void Setup() { _resolver = new TestResolver(); _bus = new InMemoryBus(_resolver); _eventStore = new MongoEventStore(_bus, "server=localhost", "TestEventStore"); _domainRepository = new DomainRepositoryImpl(_eventStore); _reportingRepository = new MongoReportingRepository(_resolver, "server=localhost", "TestReporting"); _resolver.Register(typeof(IDomainRepository), _domainRepository); _resolver.Register(typeof(IReportingRepository), _reportingRepository); }
public TripController(IUserRepository userRepository, IDriverRepository driverRepository, IMemoryCache cache, ResilientHttpClient httpClient, IOptions <TripApiSettings> tripApiSettings, IHubContext <TripHub> hubContext, IReportingRepository reportingRepository, Lazy <Task <GeneralChaosSetting> > generalChaosSettingFactory) { _userRepository = userRepository; _driverRepository = driverRepository; _cache = cache; _httpClient = httpClient; _tripApiSettings = tripApiSettings; _hubContext = hubContext; _reportingRepository = reportingRepository; _generalChaosSettingFactory = generalChaosSettingFactory; _originsAndDestinations = new Dictionary <SelectListItem, LocationModel> { { new SelectListItem { Text = "Poblado's Park" }, new LocationModel { Latitude = 6.210292869847029, Longitude = -75.57115852832794, Description = "Poblado's Park" } }, { new SelectListItem { Text = "Lleras Park" }, new LocationModel { Latitude = 6.2087793817882515, Longitude = -75.56776275426228, Description = "Lleras Park" } }, { new SelectListItem { Text = "Sabaneta Park" }, new LocationModel { Latitude = 6.151584634798451, Longitude = -75.61546325683594, Description = "Sabaneta Park" } }, { new SelectListItem { Text = "The executive bar" }, new LocationModel { Latitude = 6.252063572976704, Longitude = -75.56599313040351, Description = "The executive bar" } }, }; }
public PostController(IPostRepository _postRepository, ITagRepository _tagRepository, IMediaRepository _mediaRepository, IUserRepository _userRepository, ILocationRepository _locationRepository, IVoteRepository _voteRepository, IReportingRepository _reportingRepository, IHintRepository _hintRepository) { postRepository = _postRepository; mediaRepository = _mediaRepository; userRepository = _userRepository; locationRepository = _locationRepository; voteRepository = _voteRepository; reportingRepository = _reportingRepository; tagRepository = _tagRepository; hintRepository = _hintRepository; }
private static void SetupEventHandlers(IBus bus, IReportingRepository <PatientDto> reportingRepository) { var patientEventHandler = new PatientView(reportingRepository); bus.RegisterHandler <PatientCreatedEvent>(patientEventHandler.Handle); bus.RegisterHandler <PatientNameChangedEvent>(patientEventHandler.Handle); bus.RegisterHandler <PatientRelocatedEvent>(patientEventHandler.Handle); //var patientEventPublisher = new PatientEventPublisher(); //bus.RegisterHandler<PatientCreatedEvent>(patientEventPublisher.Handle); }
/// <summary> /// Initializes a new instance of the <see cref="DashboardController"/> class. /// </summary> /// <param name="recentActivity">The recent activity.</param> /// <param name="statisticService">The statistic service.</param> /// <param name="userRepository">The user repository.</param> /// <param name="commentRepository">The comment repository.</param> /// <param name="reportingRepository">The reporting repository.</param> public DashboardController(IRecentRepository recentActivity, IDashboardStatisticService statisticService, IUserRepository userRepository, ICommentRepository commentRepository, IReportingRepository reportingRepository) { _recentActivity = recentActivity; _reportingRepository = reportingRepository; _commentRepository = commentRepository; _userRepository = userRepository; _statisticService = statisticService; }
public FAPGetPlacesQueryHandler(IReportingRepository reportingRepository, IUserRepository userRepository, IEventsUserMappingRepository eventsUserMappingRepository, ILogger logger, IEventRepository eventRepository) { _reportingRepository = reportingRepository; _userRepository = userRepository; _logger = logger; _eventRepository = eventRepository; _eventsUserMappingRepository = eventsUserMappingRepository; }
public ChangePatientNameViewModel(Guid patientId, IBus bus, IReportingRepository <PatientDto> repository) { _bus = bus; _repository = repository; _patient = _repository.GetById(patientId); if (_patient != null) { _command = new ChangePatientNameCommand(Guid.NewGuid(), _patient.Id); _command.Name = _patient.Name; } }
/// <summary> /// Initializes a new instance of the <see cref="DashboardController"/> class. /// </summary> /// <param name="recentActivity">The recent activity.</param> /// <param name="statisticService">The statistic service.</param> /// <param name="userRepository">The user repository.</param> /// <param name="commentRepository">The comment repository.</param> /// <param name="reportingRepository">The reporting repository.</param> public DashboardController(IRecentRepository recentActivity, IDashboardStatisticService statisticService, IUserRepository userRepository, ICommentRepository commentRepository, IReportingRepository reportingRepository) { _recentActivity = recentActivity; _reportingRepository = reportingRepository; _commentRepository = commentRepository; _userRepository = userRepository; _statisticService = statisticService; }
public ClientDetailsPresenter(IClientDetailsView clientDetailsView, IAccountDetailsPresenter accountDetailsPresenter, IPopupPresenter popupPresenter, IBus bus, IReportingRepository reportingRepository) : base(clientDetailsView) { _editStep = 0; _createNewProcess = false; _addNewAccountProcess = false; _clientDetailsView = clientDetailsView; _accountDetailsPresenter = accountDetailsPresenter; _popupPresenter = popupPresenter; _bus = bus; _reportingRepository = reportingRepository; }
public ChangePatientNameViewModel(Guid patientId, IBus bus, IReportingRepository<PatientDto> repository) { _bus = bus; _repository = repository; _patient = _repository.GetById(patientId); if (_patient != null) { _command = new ChangePatientNameCommand(Guid.NewGuid(), _patient.Id); _command.Name = _patient.Name; } }
public MoneyTransferService(IBus bus, IReportingRepository reportingRepository, IReceiveMoneyTransfers receiveMoneyTransfers) { _bus = bus; _reportingRepository = reportingRepository; _receiveMoneyTransfers = receiveMoneyTransfers; _moneyTransferOptions = new Dictionary<int, Action<MoneyTransfer>> { {0, MoneyTransferIsGoingToAnInternalAccount}, {1, MoneyTransferIsGoingToAnInternalAccount}, {2, MoneyTransferIsGoingToAnExternalAccount}, {3, MoneyTransferIsGoingToAnExternalAccount}, {4, MoneyTransferIsGoingToAnExternalNonExistingAccount}, {5, MoneyTransferIsGoingToAnInternalAccount}, {6, MoneyTransferIsGoingToAnInternalAccount}, {7, MoneyTransferIsGoingToAnExternalAccount}, {8, MoneyTransferIsGoingToAnExternalAccount}, }; }
public MoneyTransferService(IBus bus, IReportingRepository reportingRepository, IReceiveMoneyTransfers receiveMoneyTransfers) { _bus = bus; _reportingRepository = reportingRepository; _receiveMoneyTransfers = receiveMoneyTransfers; _moneyTransferOptions = new Dictionary <int, Action <MoneyTransfer> > { { 0, MoneyTransferIsGoingToAnInternalAccount }, { 1, MoneyTransferIsGoingToAnInternalAccount }, { 2, MoneyTransferIsGoingToAnExternalAccount }, { 3, MoneyTransferIsGoingToAnExternalAccount }, { 4, MoneyTransferIsGoingToAnExternalNonExistingAccount }, { 5, MoneyTransferIsGoingToAnInternalAccount }, { 6, MoneyTransferIsGoingToAnInternalAccount }, { 7, MoneyTransferIsGoingToAnExternalAccount }, { 8, MoneyTransferIsGoingToAnExternalAccount }, }; }
public void Should_successfully_create_a_patient() { IBus bus = ObjectFactory.GetInstance <IBus>(); var viewModel = new CreatePatientViewModel(bus); viewModel.Command.Name = "Jeff Carley"; viewModel.Command.Status = "Active"; viewModel.Command.Street = "123 Main St"; viewModel.Command.City = "Madison"; viewModel.Command.State = "WI"; viewModel.Command.Zip = "53598"; viewModel.CreateCustomer.Execute(null); IReportingRepository <PatientDto> repository = ObjectFactory.GetInstance <IReportingRepository <PatientDto> >(); var patient = repository.GetAll(x => x.Name == "Jeff Carley").FirstOrDefault(); patient.ShouldNotBeNull(); patient.Name.ShouldEqual("Jeff Carley"); }
public SampleData(IReportingRepository reportingRepository) { this.reportingRepository = reportingRepository; }
public ClosedAccountCreatedEventHandler(IReportingRepository reportingRepository) { _reportingRepository = reportingRepository; }
public CategoryCreatedEventHandler(IReportingRepository reportingRepository) { _reportingRepository = reportingRepository; }
public AllianceEventHandlers(IReportingRepository repository) { _repository = repository; }
public TransferController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
public DepositController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
public HomeController(ICommandBus bus, IReportingRepository reportingRepository) { _bus = bus; _readmodel = new ReadModelFacade(reportingRepository); }
public ChangeNameController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
/// <summary> /// Initializes a new instance of the PatientSearchViewModel class. /// </summary> public PatientSearchViewModel(IReportingRepository<PatientDto> repository) { _repository = repository; }
public WithdrawalController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
public MoneyReceiveService(IBus bus, IReportingRepository reportingRepository) { _bus = bus; _reportingRepository = reportingRepository; }
public EntitesServiceImpl(IBus bus, IReportingRepository reportingRepository) { _bus = bus; _reportingRepository = reportingRepository; }
public OrganizationService() { _reportingRepository = ContextRegistry.GetContext().GetObject("ReportingRepository") as IReportingRepository; _repository = new OrganizationRepository(); }
public CashDepositeEventHandler(IReportingRepository reportingRepository) { _reportingRepository = reportingRepository; }
public AccountOpenedEventHandler(IReportingRepository reportingRepository) { _reportingRepository = reportingRepository; }
public DetailsController(IReportingRepository reportingRepository) : base(null, reportingRepository) { }
public SuratPeringatanAutoNumberGenerator() { _qryObjectMapper = ContextRegistry.GetContext().GetObject("QueryObjectMapper") as QueryObjectMapper; _reportingRepository = ContextRegistry.GetContext().GetObject("ReportingRepository") as IReportingRepository; }
public KillEventHandlers(IReportingRepository repository) { _repository = repository; }
public ChangePhoneNumberController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
public InvoicePaidIntegrationEventHandler(IReportingRepository reportingRepository) { _reportingRepository = reportingRepository ?? throw new ArgumentNullException(nameof(reportingRepository)); }
public ReadModelFacade(IReportingRepository reportingRepository) { this.reportingRepository = reportingRepository; }
public InvoiceCreatedIntegrationEventHandler(IReportingRepository reportingRepository, ILogger <InvoiceCreatedIntegrationEventHandler> logger) { _reportingRepository = reportingRepository ?? throw new ArgumentNullException(nameof(reportingRepository)); _logger = logger; }
public override void Initialize(string name, NameValueCollection config) { if (config.IsNull()) throw new ArgumentNullException("config"); if (String.IsNullOrEmpty(name)) name = "NHRoleProvider"; if (String.IsNullOrEmpty(config["description"])) { config.Remove("description"); config.Add("description", "AsliMotor Role provider"); } base.Initialize(name, config); if (String.IsNullOrEmpty(config["applicationName"]) || config["applicationName"].Trim() == "") { ApplicationName = System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath; } else { ApplicationName = config["applicationName"]; } _reportingRepository = ContextRegistry.GetContext().GetObject("ReportingRepository") as IReportingRepository; _queryObjectMapper = ContextRegistry.GetContext().GetObject("QueryObjectMapper") as QueryObjectMapper; }
public ListController(IReportingRepository reportingRepository) : base(null, reportingRepository) { }
public override void Initialize(string name, NameValueCollection config) { if (config.IsNull()) throw new ArgumentNullException("config"); if (name.IsNullOrWhiteSpace()) name = "AsliMotorMembershipProvider"; if (config["description"].IsNullOrWhiteSpace()) { config.Remove("description"); config.Add("description", "AsliMotor Membership provider"); } base.Initialize(name, config); ApplicationName = getConfigValue(config["applicationName"], System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath); pMaxInvalidPasswordAttempts = Convert.ToInt32(getConfigValue(config["maxInvalidPasswordAttempts"], "5")); pPasswordAttemptWindow = Convert.ToInt32(getConfigValue(config["passwordAttemptWindow"], "10")); pMinRequiredNonAlphanumericCharacters = Convert.ToInt32(getConfigValue(config["minRequiredNonAlphanumericCharacters"], "1")); pMinRequiredPasswordLength = Convert.ToInt32(getConfigValue(config["minRequiredPasswordLength"], "7")); pPasswordStrengthRegularExpression = Convert.ToString(getConfigValue(config["passwordStrengthRegularExpression"], "")); pEnablePasswordReset = Convert.ToBoolean(getConfigValue(config["enablePasswordReset"], "true")); pEnablePasswordRetrieval = Convert.ToBoolean(getConfigValue(config["enablePasswordRetrieval"], "true")); pRequiresQuestionAndAnswer = Convert.ToBoolean(getConfigValue(config["requiresQuestionAndAnswer"], "false")); pRequiresUniqueEmail = Convert.ToBoolean(getConfigValue(config["requiresUniqueEmail"], "true")); encryptionKey = HexToByte(getConfigValue(config["encryptionKey"], "ABCDEEA2EFAA00B42A")); string password_format = config["passwordFormat"]; if (password_format.IsNullOrWhiteSpace()) { password_format = "Hashed"; } switch (password_format) { case "Hashed": pPasswordFormat = MembershipPasswordFormat.Hashed; break; case "Encrypted": pPasswordFormat = MembershipPasswordFormat.Encrypted; break; case "Clear": pPasswordFormat = MembershipPasswordFormat.Clear; break; default: throw new Exception(String.Format("PasswordFormatNotSupportedMessage")); } _reportingRepository = (IReportingRepository) ContextRegistry.GetContext().GetObject("ReportingRepository"); _queryObjectMapper = (QueryObjectMapper) ContextRegistry.GetContext().GetObject("QueryObjectMapper"); }