Exemplo n.º 1
0
 public EligibilityController(ISessionHelper session, ILicenceApplicationViewModelBuilder licenceApplicationViewModelBuilder, IFormDefinition formDefinition, ILicenceApplicationPostDataHandler licenceApplicationPostDataHandler)
     : base(formDefinition)
 {
     this.session = session;
     this.licenceApplicationViewModelBuilder = licenceApplicationViewModelBuilder;
     this.licenceApplicationPostDataHandler  = licenceApplicationPostDataHandler;
 }
Exemplo n.º 2
0
 public DeclarationController(IFormDefinition formDefinition, ISessionHelper session,
                              ILicenceApplicationViewModelBuilder licenceApplicationViewModel, ILicenceApplicationPostDataHandler licenceApplicationPostDataHandler) : base(formDefinition)
 {
     this.session = session;
     this.licenceApplicationViewModel       = licenceApplicationViewModel;
     this.licenceApplicationPostDataHandler = licenceApplicationPostDataHandler;
 }
 public NamedIndividualsController(ISessionHelper session,
                                   ILicenceApplicationViewModelBuilder licenceApplicationViewModelBuilder,
                                   ILicenceApplicationPostDataHandler licenceApplicationPostDataHandler,
                                   ILicenceStatusViewModelBuilder licenceStatusViewModelBuilder,
                                   IFormDefinition formDefinition,
                                   IConstantService constantService, IReferenceDataProvider rdp) : base(session, licenceApplicationViewModelBuilder,
                                                                                                        licenceApplicationPostDataHandler, licenceStatusViewModelBuilder, formDefinition, constantService, rdp)
 {
 }
Exemplo n.º 4
0
 public AlternativeBusinessRepresentativeController(ISessionHelper session,
                                                    ILicenceApplicationViewModelBuilder licenceApplicationViewModelBuilder,
                                                    ILicenceApplicationPostDataHandler licenceApplicationPostDataHandler,
                                                    ILicenceStatusViewModelBuilder licenceStatusViewModelBuilder,
                                                    IFormDefinition formDefinition,
                                                    IConstantService constantService, IReferenceDataProvider rdp) : base(session, licenceApplicationViewModelBuilder,
                                                                                                                         licenceApplicationPostDataHandler, licenceStatusViewModelBuilder, formDefinition, constantService, rdp)
 {
 }
 public LicenceController(ISessionHelper session,
                          ILicenceApplicationViewModelBuilder licenceApplicationViewModelBuilder,
                          ILicenceApplicationPostDataHandler licenceApplicationPostDataHandler,
                          ILicenceStatusViewModelBuilder licenceStatusViewModelBuilder,
                          IFormDefinition formDefinition,
                          IConstantService constantService, IReferenceDataProvider rdp,
                          UserManager <GLAAUser> userManager) : base(session, licenceApplicationViewModelBuilder,
                                                                     licenceApplicationPostDataHandler, licenceStatusViewModelBuilder, formDefinition, constantService, rdp)
 {
     this.userManager = userManager;
 }
Exemplo n.º 6
0
 public AccountController(ISessionHelper session,
                          ApplicationUserManager userManager,
                          ApplicationSignInManager signInManager,
                          IAuthenticationManager authManager,
                          ILicenceApplicationPostDataHandler licencePostDataHandler)
 {
     UserManager   = userManager;
     SignInManager = signInManager;
     this.session  = session;
     _authManager  = authManager;
     this.licencePostDataHandler = licencePostDataHandler;
 }
 public LicenceApplicationBaseController(ISessionHelper session,
                                         ILicenceApplicationViewModelBuilder licenceApplicationViewModelBuilder,
                                         ILicenceApplicationPostDataHandler licenceApplicationPostDataHandler,
                                         ILicenceStatusViewModelBuilder licenceStatusViewModelBuilder,
                                         IFormDefinition formDefinition,
                                         IConstantService constantService, IReferenceDataProvider rdp) : base(formDefinition, rdp)
 {
     Session = session;
     LicenceApplicationViewModelBuilder = licenceApplicationViewModelBuilder;
     LicenceApplicationPostDataHandler  = licenceApplicationPostDataHandler;
     LicenceStatusViewModelBuilder      = licenceStatusViewModelBuilder;
     ConstantService = constantService;
 }
        public void Setup()
        {
            licenceViewModelBuilder = Substitute.For <ILicenceApplicationViewModelBuilder>();
            var licenceStatusViewModelBuilder = Substitute.For <ILicenceStatusViewModelBuilder>();

            licencePostDataHandler = Substitute.For <ILicenceApplicationPostDataHandler>();
            session               = Substitute.For <ISessionHelper>();
            formDefinition        = new LicenceApplicationFormDefinition(new FieldConfiguration());
            referenceDataProvider = Substitute.For <IReferenceDataProvider>();

            licenceStatusViewModelBuilder.BuildRandomStatus().Returns(x => new LicenceStatusViewModel());

            controller = new OrganisationDetailsController(session, licenceViewModelBuilder, licencePostDataHandler, licenceStatusViewModelBuilder, formDefinition, new ConstantService(), referenceDataProvider);
        }
Exemplo n.º 9
0
 public AccountController(
     UserManager <GLAAUser> userManager,
     SignInManager <GLAAUser> signInManager,
     RoleManager <GLAARole> roleManager,
     IEmailSender emailSender,
     ILogger <AccountController> logger,
     ILicenceApplicationPostDataHandler licencePostDataHandler,
     ILicenceApplicationViewModelBuilder licenceApplicationViewModelBuilder,
     ISessionHelper session,
     IEmailService emailService,
     IConfiguration configuration)
 {
     _userManager                            = userManager;
     _signInManager                          = signInManager;
     _emailSender                            = emailSender;
     _roleManager                            = roleManager;
     _logger                                 = logger;
     this.emailService                       = emailService;
     this.licencePostDataHandler             = licencePostDataHandler;
     this.licenceApplicationViewModelBuilder = licenceApplicationViewModelBuilder;
     this.session                            = session;
     this.configuration                      = configuration;
 }