Beispiel #1
0
 public RentCarCommand(IServiceProvider serviceProvider, RentModel rentModel)
 {
     _rentCarService = (IRentCarService)serviceProvider.GetService(typeof(IRentCarService));
     _rentModel      = rentModel;
 }
Beispiel #2
0
 public CarEventHandler(IRentCarService rentCarService, IMessageSerializer messageSerializer)
 {
     _rentCarService    = rentCarService;
     _messageSerializer = messageSerializer;
 }
Beispiel #3
0
 public RentController(IRentCarService rentCarService)
 {
     _rentCarService = rentCarService;
 }