Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CatalogService" /> class.
 /// </summary>
 /// <param name="processor">The command processor.</param>
 /// <param name="validationServiceFactory">The service factory of validators.</param>
 public CatalogService(
     ICommandHandlerProcessor processor,
     IValidationServiceFactory validationServiceFactory)
 {
     this.processor = processor;
     this.validationServiceFactory = validationServiceFactory;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CatalogEntryService"/> class.
        /// </summary>
        /// <param name="processor">The command processor.</param>
        /// <param name="validationServiceFactory">The service factory of validators.</param>
        /// <param name="catalogService">The catalog service.</param>
        public CatalogEntryService(
            ICommandHandlerProcessor processor,
            IValidationServiceFactory validationServiceFactory,
            ICatalogService catalogService)
        {
            this.processor = processor;
            this.validationServiceFactory = validationServiceFactory;

            this.catalogService = catalogService;
        }