Ejemplo n.º 1
0
 public ModelService(AutoRenterContext context,
                     ICommandFactory <Model> commandFactory,
                     IValidationService validationService)
 {
     this.context           = context;
     this.commandFactory    = commandFactory;
     this.validationService = validationService;
 }
 public LocationService(AutoRenterContext context,
                        ICommandFactory <Location> commandFactory,
                        IVehicleService vehicleService,
                        IValidationService validationService)
 {
     this.context           = context;
     this.commandFactory    = commandFactory;
     this.vehicleService    = vehicleService;
     this.validationService = validationService;
 }
 public VehicleService(AutoRenterContext context,
                       ICommandFactory <Vehicle> commandFactory,
                       IValidationService validationService,
                       IMakeService makeService,
                       IModelService modelService)
 {
     this.context           = context;
     this.commandFactory    = commandFactory;
     this.validationService = validationService;
     this.makeService       = makeService;
     this.modelService      = modelService;
 }
 public StateServiceTests()
 {
     // xUnit.net creates a new instance of the test class for every test that is run.
     // The constructor and the Dispose method will always be called once for every test.
     context = TestableContextFactory.GenerateContext();
 }
Ejemplo n.º 5
0
 public Get(AutoRenterContext context)
 {
     this.context = context;
 }
 public IGetCommand <T> CreateGetCommand(AutoRenterContext context)
 {
     return(new Get <T>(context));
 }
 public IDeleteCommand <T> CreateDeleteCommand(AutoRenterContext context)
 {
     return(new Delete <T>(context));
 }
 public IUpdateCommand <T> CreateUpdateCommand(AutoRenterContext context)
 {
     return(new Update <T>(context));
 }
 public IInsertCommand <T> CreateInsertCommand(AutoRenterContext context)
 {
     return(new Insert <T>(context));
 }
Ejemplo n.º 10
0
 public Insert(AutoRenterContext context)
 {
     this.context = context;
 }
Ejemplo n.º 11
0
 public Update(AutoRenterContext context)
 {
     this.context = context;
 }
 public Delete(AutoRenterContext context)
 {
     this.context = context;
 }
Ejemplo n.º 13
0
 public StateService(AutoRenterContext context, ICommandFactory <State> commandFactory)
 {
     this.context        = context;
     this.commandFactory = commandFactory;
 }
Ejemplo n.º 14
0
 public UserServiceTests()
 {
     _context = TestableContextFactory.GenerateContext();
 }
 public UserService(AutoRenterContext context)
 {
     this.context = context;
 }