public static BehaviourRequestBuilder <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.BehaviourRequest(name); return(new BehaviourRequestBuilder <TBuilder>(model, behaviour)); }
public BehaviourRequestBuilder(TBuilder builder, Domain.BehaviourRequest request) { Build = builder; Instance = request ?? throw new ArgumentNullException(nameof(request)); }