コード例 #1
0
 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;
 }
コード例 #2
0
        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)));
        }
コード例 #3
0
 public ClientSearchFormPresenter(IClientSearchFormView clientSearchFormView, IClientDetailsPresenter clientDetailsPresenter, IPopupPresenter popupPresenter, IReportingRepository reportingRepository) : base(clientSearchFormView)
 {
     _clientSearchFormView   = clientSearchFormView;
     _popupPresenter         = popupPresenter;
     _clientDetailsPresenter = clientDetailsPresenter;
     _reportingRepository    = reportingRepository;
 }
コード例 #4
0
        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();
        }
コード例 #5
0
ファイル: DashboardController.cs プロジェクト: zealo0724/VAP
 protected override void Initialize(HttpControllerContext controllerContext)
 {
     base.Initialize(controllerContext);
     _reportingRepo     = new ReportingRepository(PowerBiAppContext, Tenant);
     _adminRepo         = new AdminRepository(PowerBiAppContext, Tenant);
     _veracityApiHelper = new VeracityApiHelper();
 }
コード例 #6
0
 public FAPTransactionReportQueryHandler(
     IReportingRepository reportingRepository,
     IEventRepository eventRepository
     )
 {
     _reportingRepository = reportingRepository;
     _eventRepository     = eventRepository;
 }
コード例 #7
0
 public EstateAgentNormaliser(ILoggerFactory loggerFactory
                              , IReportingRepository reportingRepository
                              , IReportingUpdatesBus reportingUpdatesBus)
 {
     _reportingRepository = reportingRepository;
     _reportingUpdatesBus = reportingUpdatesBus;
     _logger = loggerFactory.Create();
 }
コード例 #8
0
                public ReportingService(IReportingRepository repository)  
                
        {
             
                            _repository  =  repository;  

                        
        }
コード例 #9
0
ファイル: MainModule.cs プロジェクト: reiroldan/dotnetkb
        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;
            };
        }
コード例 #10
0
        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);
            };
        }
コード例 #11
0
 public AccountDetailsPresenter(IAccountDetailsView accountDetailsView, IPopupPresenter popupPresenter, IBus bus, IReportingRepository reportingRepository)
     : base(accountDetailsView)
 {
     _editStep           = 0;
     _accountDetailsView = accountDetailsView;
     _popupPresenter     = popupPresenter;
     _bus = bus;
     _reportingRepository = reportingRepository;
 }
コード例 #12
0
 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;
 }
コード例 #13
0
        public InMemorySystemUnderTest(IDomainCommandBus commandBus
                                       , IReportingUpdatesBus reportingUpdatesBus
                                       , IReportingRepository reportingRepository)
        {
            _commandBus = commandBus;

            _reportingUpdatesBus = reportingUpdatesBus;

            ReportingRepository = reportingRepository;
        }
コード例 #14
0
        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);
        }
コード例 #15
0
ファイル: InMemoryBusTest.cs プロジェクト: reiroldan/dotnetkb
        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);
        }
コード例 #16
0
        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"
                    }
                },
            };
        }
コード例 #17
0
 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;
 }
コード例 #18
0
        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);
        }
コード例 #19
0
 /// <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;
 }
コード例 #20
0
 public FAPGetPlacesQueryHandler(IReportingRepository reportingRepository,
                                 IUserRepository userRepository,
                                 IEventsUserMappingRepository eventsUserMappingRepository,
                                 ILogger logger,
                                 IEventRepository eventRepository)
 {
     _reportingRepository = reportingRepository;
     _userRepository      = userRepository;
     _logger                      = logger;
     _eventRepository             = eventRepository;
     _eventsUserMappingRepository = eventsUserMappingRepository;
 }
コード例 #21
0
        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;
            }
        }
コード例 #22
0
 /// <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;
 }
コード例 #23
0
 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;
 }
コード例 #24
0
        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;
            }
        }
コード例 #25
0
        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},
            };
        }
コード例 #26
0
ファイル: MoneyTransferService.cs プロジェクト: mesteves/CQRS
        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");
        }
コード例 #28
0
ファイル: SampleData.cs プロジェクト: BonaStoco/AP2
 public SampleData(IReportingRepository reportingRepository)
 {
     this.reportingRepository = reportingRepository;
 }
コード例 #29
0
 public ClosedAccountCreatedEventHandler(IReportingRepository reportingRepository)
 {
     _reportingRepository = reportingRepository;
 }
コード例 #30
0
 public CategoryCreatedEventHandler(IReportingRepository reportingRepository)
 {
     _reportingRepository = reportingRepository;
 }
コード例 #31
0
 public AllianceEventHandlers(IReportingRepository repository)
 {
     _repository = repository;
 }
コード例 #32
0
 public TransferController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
コード例 #33
0
 public DepositController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
コード例 #34
0
 public HomeController(ICommandBus bus, IReportingRepository reportingRepository)
 {
     _bus = bus;
     _readmodel = new ReadModelFacade(reportingRepository);
 }
コード例 #35
0
 public ChangeNameController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
コード例 #36
0
 /// <summary>
 /// Initializes a new instance of the PatientSearchViewModel class.
 /// </summary>
 public PatientSearchViewModel(IReportingRepository<PatientDto> repository)
 {
     _repository = repository;
 }
コード例 #37
0
 public WithdrawalController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
コード例 #38
0
 public MoneyReceiveService(IBus bus, IReportingRepository reportingRepository)
 {
     _bus = bus;
     _reportingRepository = reportingRepository;
 }
コード例 #39
0
 public EntitesServiceImpl(IBus bus, IReportingRepository reportingRepository)
 {
     _bus = bus;
     _reportingRepository = reportingRepository;
 }
コード例 #40
0
ファイル: OrganizationService.cs プロジェクト: AsliMotor/AMQ
 public OrganizationService()
 {
     _reportingRepository = ContextRegistry.GetContext().GetObject("ReportingRepository") as IReportingRepository;
     _repository = new OrganizationRepository();
 }
コード例 #41
0
 public CashDepositeEventHandler(IReportingRepository reportingRepository)
 {
     _reportingRepository = reportingRepository;
 }
コード例 #42
0
 public AccountOpenedEventHandler(IReportingRepository reportingRepository)
 {
     _reportingRepository = reportingRepository;
 }
コード例 #43
0
 public DetailsController(IReportingRepository reportingRepository) : base(null, reportingRepository) { }
コード例 #44
0
 public SuratPeringatanAutoNumberGenerator()
 {
     _qryObjectMapper = ContextRegistry.GetContext().GetObject("QueryObjectMapper") as QueryObjectMapper;
     _reportingRepository = ContextRegistry.GetContext().GetObject("ReportingRepository") as IReportingRepository;
 }
コード例 #45
0
 public KillEventHandlers(IReportingRepository repository)
 {
     _repository = repository;
 }
コード例 #46
0
 public ChangePhoneNumberController(IBus bus, IReportingRepository reportingRepository) : base(bus, reportingRepository) { }
 public InvoicePaidIntegrationEventHandler(IReportingRepository reportingRepository)
 {
     _reportingRepository = reportingRepository ?? throw new ArgumentNullException(nameof(reportingRepository));
 }
コード例 #48
0
 public ReadModelFacade(IReportingRepository reportingRepository)
 {
     this.reportingRepository = reportingRepository;
 }
コード例 #49
0
 public InvoiceCreatedIntegrationEventHandler(IReportingRepository reportingRepository, ILogger <InvoiceCreatedIntegrationEventHandler> logger)
 {
     _reportingRepository = reportingRepository ?? throw new ArgumentNullException(nameof(reportingRepository));
     _logger = logger;
 }
コード例 #50
0
        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;
        }
コード例 #51
0
 public ListController(IReportingRepository reportingRepository) : base(null, reportingRepository) { }
コード例 #52
0
        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");
        }