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)); }
public BehaviourBuilder(T builder, Domain.Behaviour field) { Build = builder; Instance = field ?? throw new ArgumentNullException(nameof(field)); }