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(); }
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)); }
public Insert(AutoRenterContext context) { this.context = context; }
public Update(AutoRenterContext context) { this.context = context; }
public Delete(AutoRenterContext context) { this.context = context; }
public StateService(AutoRenterContext context, ICommandFactory <State> commandFactory) { this.context = context; this.commandFactory = commandFactory; }
public UserServiceTests() { _context = TestableContextFactory.GenerateContext(); }
public UserService(AutoRenterContext context) { this.context = context; }