Esempio n. 1
0
        public static BehaviourBuilder <TBuilder> Create(TBuilder model, string name)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException(name);
            }

            var behaviour = new Domain.Behaviour(name);

            return(new BehaviourBuilder <TBuilder>(model, behaviour));
        }
Esempio n. 2
0
 public BehaviourBuilder(T builder, Domain.Behaviour field)
 {
     Build    = builder;
     Instance = field ?? throw new ArgumentNullException(nameof(field));
 }