Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public BehaviourRequestBuilder(TBuilder builder, Domain.BehaviourRequest request)
 {
     Build    = builder;
     Instance = request ?? throw new ArgumentNullException(nameof(request));
 }