Пример #1
0
        protected BaseVobDef(string codeName, IBaseDefFactory baseDefFactory, IVobDefRegistration registration)
        {
            if (baseDefFactory == null)
            {
                throw new ArgumentNullException(nameof(baseDefFactory));
            }


            if (string.IsNullOrWhiteSpace(codeName))
            {
                throw new ArgumentException("Value cannot be null or whitespace.", nameof(codeName));
            }

            _Registration = registration ?? throw new ArgumentNullException(nameof(registration));

            BaseDef  = baseDefFactory.Build(this);
            CodeName = codeName;
        }
Пример #2
0
 public LizardDefBuilder(IBaseDefFactory baseDefFactory, IVobDefRegistration registration)
 {
     _BaseDefFactory = baseDefFactory ?? throw new ArgumentNullException(nameof(baseDefFactory));
     _Registration   = registration ?? throw new ArgumentNullException(nameof(registration));
 }
Пример #3
0
 public MobInterDef(string codeName, IBaseDefFactory baseDefFactory, IVobDefRegistration registration) : base(codeName, baseDefFactory, registration)
 {
 }