/// <summary>
        ///     Initializes a new instance of the <see cref="MasterDataDimensionStructureBusinessLogic"/> class.
        /// </summary>
        /// <param name="dbContextOptions"> <see cref="DbContextOptions"/> for MasterDataContext. </param>
        /// <param name="masterDataValidators"> Validators of MasterDataContext. </param>
        public MasterDataDimensionStructureBusinessLogic(
            DbContextOptions <MasterDataContext> dbContextOptions,
            IMasterDataValidators masterDataValidators)
        {
            Check.IsNotNull(dbContextOptions);
            Check.IsNotNull(masterDataValidators);

            _dbContextOptions     = dbContextOptions;
            _masterDataValidators = masterDataValidators;
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MasterDataSourceFormatBusinessLogic"/> class.
        /// </summary>
        /// <param name="dbContextOptions">
        ///     Instance of <see cref="DbContextOptions<MasterDataContext> "/>.
        /// </param>
        /// <param name="masterDataValidators">
        ///     Instance of <see cref="IMasterDataValidators"/>.
        /// </param>
        public MasterDataSourceFormatBusinessLogic(
            DbContextOptions <MasterDataContext> dbContextOptions,
            IMasterDataValidators masterDataValidators)
        {
            Check.IsNotNull(dbContextOptions);
            Check.IsNotNull(masterDataValidators);

            _dbContextOptions     = dbContextOptions;
            _masterDataValidators = masterDataValidators;
        }