コード例 #1
0
 public ModelFactories(
     IValueTypeFactory valueTypeFactory,
     IValidatorFactory validatorFactory,
     IEntityFactory entityFactory)
 {
     ValueType = valueTypeFactory.NotNull(nameof(valueTypeFactory));
     Validator = validatorFactory.NotNull(nameof(validatorFactory));
     Entity    = entityFactory.NotNull(nameof(entityFactory));
 }
コード例 #2
0
 public ModelLoader(
     IValueTypeFactory valueTypeFactory,
     IValidatorFactory validatorFactory,
     IEntityFactory entityFactory,
     IEntityRepository entityRepository)
 {
     _valueTypeFactory = valueTypeFactory.NotNull(nameof(valueTypeFactory));
     _validatorFactory = validatorFactory.NotNull(nameof(validatorFactory));
     _entityFactory    = entityFactory.NotNull(nameof(entityFactory));
     _entityRepository = entityRepository.NotNull(nameof(entityRepository));
 }