public ModelFactories( IValueTypeFactory valueTypeFactory, IValidatorFactory validatorFactory, IEntityFactory entityFactory) { ValueType = valueTypeFactory.NotNull(nameof(valueTypeFactory)); Validator = validatorFactory.NotNull(nameof(validatorFactory)); Entity = entityFactory.NotNull(nameof(entityFactory)); }
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)); }