public DeleteOfferCommand(IMotorSystemContext context, IOfferInputProvider offerInputProvider) { Guard.WhenArgument(context, "context").IsNull().Throw(); Guard.WhenArgument(offerInputProvider, "offerInputProvider").IsNull().Throw(); this.context = context; this.offerInputProvider = offerInputProvider; }
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; }
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; }