Esempio n. 1
0
        public DeleteOfferCommand(IMotorSystemContext context, IOfferInputProvider offerInputProvider)
        {
            Guard.WhenArgument(context, "context").IsNull().Throw();
            Guard.WhenArgument(offerInputProvider, "offerInputProvider").IsNull().Throw();

            this.context            = context;
            this.offerInputProvider = offerInputProvider;
        }
Esempio n. 2
0
        public ListOffersCommand(IWriter writer, IOfferInputProvider offerInputProvider, IMotorSystemContext context)
        {
            Guard.WhenArgument(writer, "writer").IsNull().Throw();
            Guard.WhenArgument(offerInputProvider, "userInputProvider").IsNull().Throw();
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.writer             = writer;
            this.offerInputProvider = offerInputProvider;
            this.context            = context;
        }
Esempio n. 3
0
        public CreateOfferCommand(IMotorSystemContext context, IModelFactory factory, IOfferInputProvider offerInputProvider
                                  , IMemoryCacheProvider memCache)
        {
            Guard.WhenArgument(context, "context").IsNull().Throw();
            Guard.WhenArgument(factory, "factory").IsNull().Throw();
            Guard.WhenArgument(offerInputProvider, "offerInputProvider").IsNull().Throw();
            Guard.WhenArgument(memCache, "memCache").IsNull().Throw();

            this.context            = context;
            this.factory            = factory;
            this.offerInputProvider = offerInputProvider;
            this.memCache           = memCache;
        }