// TODO: This is a lot of injected dependencies... public WebhookHandlerService(IPaymentHandlerSubscription paymentHandlerSubscription, IPaymentHandlerCustomerService paymentHandlerCustomerService, IPaymentHandlerInvoice paymentHandlerInvoice, IPaymentHandlerEventService paymentHandlerEvent, INewMemberService newMemberService, IMemberAddBillingActivityService memberAddBillingActivityService, IMemberSubscriptionRenewalService memberSubscriptionRenewalService, IMemberCancellationService memberCancellationService, IMemberSubscriptionEndedAdminEmailService memberSubscriptionEndedAdminEmailService, IUserLookupService userLookupService, IRepository <Member> repository, AdminUpdatesWebhook webhook, IAppLogger <WebhookHandlerService> logger) { _paymentHandlerSubscription = paymentHandlerSubscription; _paymentHandlerCustomerService = paymentHandlerCustomerService; _paymentHandlerInvoice = paymentHandlerInvoice; _paymentHandlerEventService = paymentHandlerEvent; _newMemberService = newMemberService; _memberAddBillingActivityService = memberAddBillingActivityService; _memberSubscriptionRenewalService = memberSubscriptionRenewalService; _memberCancellationService = memberCancellationService; _memberSubscriptionEndedAdminEmailService = memberSubscriptionEndedAdminEmailService; _userLookupService = userLookupService; _repository = repository; _webhook = webhook; _logger = logger; }
public VerifyValidEmailAndInviteCode() { _repository = new Mock <IRepository>(); _userRoleMembershipService = new Mock <IUserRoleMembershipService>(); _paymentHandlerSubscription = new Mock <IPaymentHandlerSubscription>(); _emailService = new Mock <IEmailService>(); _newMemberService = new NewMemberService(_repository.Object, _userRoleMembershipService.Object, _paymentHandlerSubscription.Object, _emailService.Object); }
public CreateInvitation() { _repository = new Mock <IRepository>(); _userRoleMembershipService = new Mock <IUserRoleMembershipService>(); _paymentHandlerSubscription = new Mock <IPaymentHandlerSubscription>(); _emailService = new Mock <IEmailService>(); _newMemberService = new NewMemberService(_repository.Object, _userRoleMembershipService.Object, _paymentHandlerSubscription.Object, _emailService.Object); }
public MemberSetup() { _repository = new Mock <IRepository>(); _userRoleMembershipService = new Mock <IUserRoleMembershipService>(); _paymentHandlerSubscription = new Mock <IPaymentHandlerSubscription>(); _emailService = new Mock <IEmailService>(); _newMemberService = new NewMemberService(_repository.Object, _userRoleMembershipService.Object, _paymentHandlerSubscription.Object, _emailService.Object); _invitation = new Invitation(_email, _inviteCode, _subscriptionId); }
public StripeWebhookHandler(ILogger <StripeWebhookHandler> logger, INewMemberService newMemberService, IPaymentHandlerSubscription paymentHandlerSubscription, IPaymentHandlerCustomer paymentHandlerCustomer, AdminUpdatesWebhook adminUpdatesWebhook) { _logger = logger; _newMemberService = newMemberService; _paymentHandlerSubscription = paymentHandlerSubscription; _paymentHandlerCustomer = paymentHandlerCustomer; _webhook = adminUpdatesWebhook; }
public VerifyValidEmailAndInviteCode() { _memberRepository = new Mock <IRepository <Member> >(); _invitationRepository = new Mock <IRepository <Invitation> >(); _userRoleMembershipService = new Mock <IUserRoleMembershipService>(); _paymentHandlerSubscription = new Mock <IPaymentHandlerSubscription>(); _emailService = new Mock <IEmailService>(); _memberRegistrationService = new Mock <IMemberRegistrationService>(); _newMemberService = new NewMemberService(_invitationRepository.Object, _userRoleMembershipService.Object, _paymentHandlerSubscription.Object, _emailService.Object, _memberRegistrationService.Object); }
public SendRegistrationEmail() { _memberRepository = new Mock <IRepository <Member> >(); _invitationRepository = new Mock <IRepository <Invitation> >(); _userRoleMembershipService = new Mock <IUserRoleMembershipService>(); _paymentHandlerSubscription = new Mock <IPaymentHandlerSubscription>(); _emailService = new Mock <IEmailService>(); _memberRegistrationService = new Mock <IMemberRegistrationService>(); _newMemberService = new NewMemberService(_invitationRepository.Object, _userRoleMembershipService.Object, _paymentHandlerSubscription.Object, _emailService.Object, _memberRegistrationService.Object); _invitation = new Invitation(_email, _inviteCode, _subscriptionId); }
public NewMemberRegisterModel( UserManager <ApplicationUser> userManager, ILogger <RegisterModel> logger, IEmailService emailService, IDomainEventDispatcher dispatcher, ICaptchaValidator captchaValidator, INewMemberService newMemberService) { _userManager = userManager; _logger = logger; _emailService = emailService; _dispatcher = dispatcher; _captchaValidator = captchaValidator; _newMemberService = newMemberService; ReturnUrl = "../User/MyProfile/Personal"; }
public NewMemberRegisterModel( UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IUserRoleMembershipService userRoleMembershipService, ILogger <RegisterModel> logger, IDomainEventDispatcher dispatcher, ICaptchaValidator captchaValidator, INewMemberService newMemberService) { _userManager = userManager; _roleManager = roleManager; _userRoleMembershipService = userRoleMembershipService; _logger = logger; _dispatcher = dispatcher; _captchaValidator = captchaValidator; _newMemberService = newMemberService; }