Ejemplo n.º 1
0
 public NewUserSignedInHandler(IBusClient bus,
                               IUserRepository userRepository,
                               IUserPaymentPlanService userPaymentPlanService)
 {
     _bus                    = bus;
     _userRepository         = userRepository;
     _userPaymentPlanService = userPaymentPlanService;
 }
Ejemplo n.º 2
0
 public UserSignedInHandler(IBusClient bus,
                            IUserRepository userRepository,
                            IUserPaymentPlanService userPaymentPlanService,
                            IWardenChecksCounter wardenChecksCounter)
 {
     _bus                    = bus;
     _userRepository         = userRepository;
     _userPaymentPlanService = userPaymentPlanService;
     _wardenChecksCounter    = wardenChecksCounter;
 }
Ejemplo n.º 3
0
 public UserPaymentPlanModule(IUserPaymentPlanService userPaymentPlanService) : base("users/{userId}/plans")
 {
     Get("current", async args => await Fetch <GetCurrentUserPaymentPlan, UserPaymentPlan>
             (async x => await userPaymentPlanService.GetCurrentPlanAsync(x.UserId)).HandleAsync());
 }