Example #1
0
        /// <summary>
        /// The register.
        /// </summary>
        /// <param name="typeRegistrarService">
        /// The type registrar service.
        /// </param>
        public void Register(ITypeRegistrarService typeRegistrarService)
        {
            /*
             * if (!typeof(IApplyCatalogNameConvention).IsAssignableFrom(catalogNameConventionType))
             * {
             *  throw new Exception(
             *      "'{0}' must implement interface '{1}'".FormatWith(
             *          catalogNameConventionType.FullName,
             *          typeof(IApplyCatalogNameConvention).FullName));
             * }
             */
            typeRegistrarService.RegisterTypeUnityOfWork <IApplyCatalogNameConvention, ClassicModelNameConvention>();

            typeRegistrarService.RegisterTypeUnityOfWork <IConnectionStringFactory <CardValidationContext>, ConnectionStringFactory <CardValidationContext> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbConnectionFactoryCustom <CardValidationContext>, DbConnectionFactory <CardValidationContext> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbContextFactory <CardValidationContext>, ReadModelContextFactory <CardValidationContext> >();

            typeRegistrarService.RegisterTypeUnityOfWork <IConnectionStringFactory <CardValidationReadContext>, ConnectionStringFactory <CardValidationReadContext> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbConnectionFactoryCustom <CardValidationReadContext>, DbConnectionFactory <CardValidationReadContext> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbContextFactory <CardValidationReadContext>, ReadModelContextFactory <CardValidationReadContext> >();


            typeRegistrarService.RegisterType <ITestInfo, TestInfo>();

            typeRegistrarService.RegisterTypeUnityOfWork <IRepositoryReadCardValidation, RepositoryReadCardValidation>();
            typeRegistrarService.RegisterTypeUnityOfWork <IRepositoryCardValidation, RepositoryCardValidation>();
        }
Example #2
0
        /// <summary>
        /// The register.
        /// </summary>
        /// <param name="typeRegistrarService">
        /// The type registrar service.
        /// </param>
        public void Register(ITypeRegistrarService typeRegistrarService)
        {
            typeRegistrarService.RegisterTypeUnityOfWork <IApplyCatalogNameConvention, ClassicModelNameConvention>();
            typeRegistrarService.RegisterTypeUnityOfWork <IConnectionStringFactory <Bb_Monitoring>, ConnectionStringFactory <Bb_Monitoring> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbConnectionFactoryCustom <Bb_Monitoring>, DbConnectionFactory <Bb_Monitoring> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbContextFactory <Bb_Monitoring>, ReadModelContextFactory <Bb_Monitoring> >();

            typeRegistrarService.RegisterTypeUnityOfWork <ILoggingRepositoryRead, LoggingRepositoryRead>();
            typeRegistrarService.RegisterTypeUnityOfWork <ILoggingRepository, LoggingRepository>();
        }
Example #3
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <ILocalizationSupport, LocalizationSupport>();
 }
Example #4
0
 /// <summary>
 ///     The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 ///     The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <ICardValidatorService, CardValidatorService>();
 }
Example #5
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <IRequestInfo, RequestInfo>();
     typeRegistrarService.RegisterTypeUnityOfWork <ITransactionScopeProvider, DefaultAsyncTransactionScope>();
 }
Example #6
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <IMessageValidator, MessageValidator>();
 }
Example #7
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <IRequestInfo, RequestInfo>();
 }