コード例 #1
0
 public ModelService(AutoRenterContext context,
                     ICommandFactory <Model> commandFactory,
                     IValidationService validationService)
 {
     this.context           = context;
     this.commandFactory    = commandFactory;
     this.validationService = validationService;
 }
コード例 #2
0
 public LocationService(AutoRenterContext context,
                        ICommandFactory <Location> commandFactory,
                        IVehicleService vehicleService,
                        IValidationService validationService)
 {
     this.context           = context;
     this.commandFactory    = commandFactory;
     this.vehicleService    = vehicleService;
     this.validationService = validationService;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 public Get(AutoRenterContext context)
 {
     this.context = context;
 }
コード例 #6
0
 public IGetCommand <T> CreateGetCommand(AutoRenterContext context)
 {
     return(new Get <T>(context));
 }
コード例 #7
0
 public IDeleteCommand <T> CreateDeleteCommand(AutoRenterContext context)
 {
     return(new Delete <T>(context));
 }
コード例 #8
0
 public IUpdateCommand <T> CreateUpdateCommand(AutoRenterContext context)
 {
     return(new Update <T>(context));
 }
コード例 #9
0
 public IInsertCommand <T> CreateInsertCommand(AutoRenterContext context)
 {
     return(new Insert <T>(context));
 }
コード例 #10
0
 public Insert(AutoRenterContext context)
 {
     this.context = context;
 }
コード例 #11
0
 public Update(AutoRenterContext context)
 {
     this.context = context;
 }
コード例 #12
0
 public Delete(AutoRenterContext context)
 {
     this.context = context;
 }
コード例 #13
0
 public StateService(AutoRenterContext context, ICommandFactory <State> commandFactory)
 {
     this.context        = context;
     this.commandFactory = commandFactory;
 }
コード例 #14
0
 public UserServiceTests()
 {
     _context = TestableContextFactory.GenerateContext();
 }
コード例 #15
0
 public UserService(AutoRenterContext context)
 {
     this.context = context;
 }