public PupilService(IDocumentRepository documentRepository, IDataService dataService, IEstablishmentService schoolService, IAllocationYearConfig year)
 {
     _documentRepository = documentRepository;
     _dataService        = dataService;
     _schoolService      = schoolService;
     _allocationYear     = year.Value;
 }
 public RemovePupilAdmittedFromAbroadRule(IDataService dataService, IAllocationYearConfig config,
                                          IEstablishmentService establishmentService)
 {
     _dataService          = dataService;
     _establishmentService = establishmentService;
     _config = config;
 }
 public StatementsController(ILogger <StatementsController> logger, IReleasesService releasesService, IEstablishmentService establishmentService, IControllerMessages responseMessages)
 {
     this.logger               = logger;
     this.releasesService      = releasesService;
     this.establishmentService = establishmentService;
     this.responseMessages     = responseMessages;
     this.httpResponseHelper   = new HttpResponseFormat();
 }
Exemplo n.º 4
0
 public EstablishmentsController(ILogger <EstablishmentsController> logger, IEstablishmentService establishmentService, IControllerMessages responseMessages, IRabbitConnector rabbitConnector)
 {
     this.logger = logger;
     this.establishmentService = establishmentService;
     this.responseMessages     = responseMessages;
     this.rabbitConnector      = rabbitConnector;
     this.httpResponseHelper   = new HttpResponseFormat();
 }
Exemplo n.º 5
0
 public RegisterService(
     IMongoRepository mongoRepository,
     IEstablishmentService establishmentService,
     ILoginService loginService
     )
 {
     this.MongoRepository      = mongoRepository;
     this.EstablishmentService = establishmentService;
     this.LoginService         = loginService;
 }
 public CrmAmendmentService(
     IOrganizationService organizationService,
     IEstablishmentService establishmentService,
     DynamicsOptions dynamicsOptions,
     IEnumerable <IAmendmentBuilder> amendmentBuilders)
 {
     _establishmentService = establishmentService;
     _amendmentBuilders    = amendmentBuilders;
     _organizationService  = organizationService;
     _sharePointDocumentLocationRecordId = dynamicsOptions.SharePointDocumentLocationRecordId;
 }
Exemplo n.º 7
0
        public DatabaseSettingsFixture()
        {
            var mockDatabaseSettings = new Mock <IDatabaseConnectorSettings>();

            mockDatabaseSettings.SetupGet(mi => mi.DatabaseName).Returns("extratos-api-statementsDB-test");
            mockDatabaseSettings.SetupGet(mi => mi.ConnectionString).Returns("mongodb+srv://rw-permission-user:[email protected]/?ssl=true&authSource=admin&w=majority");
            mockDatabaseSettings.SetupGet(mi => mi.CollectionName).Returns("");

            this.dbSettings           = mockDatabaseSettings.Object;
            this.establishmentService = new EstablishmentService(dbSettings);
            this.releasesService      = new ReleasesService(dbSettings);
        }
        public StatementsServiceTests(DatabaseSettingsFixture dbFixture)
        {
            // 0: Setting wrapper for logger
            loggerWrapper   = new LoggerWrapper <StatementsController>();
            rabbitConnector = new RabbitConnectorWrapper();

            // 1: Setting establishment and releases service given db settings
            this.dbSettings           = dbFixture.dbSettings;
            this.establishmentService = dbFixture.establishmentService;
            this.releasesService      = dbFixture.releasesService;

            // 2: Get controller messages
            this.controllerMessages = GetControllerMessagesProperties();

            // 3: Instantiate of Establishment Controller
            this.statementsController = new StatementsController(loggerWrapper, releasesService, establishmentService, controllerMessages);
        }
 public EstablishmentServiceTests()
 {
     _service = new EstablishmentService();
 }
 public PupilController(IPupilService pupilService, IEstablishmentService establishmentService, UserInfo userInfo)
     : base(userInfo)
 {
     _pupilService         = pupilService;
     _establishmentService = establishmentService;
 }
Exemplo n.º 11
0
 public EstablishmentController(IEstablishmentService establishmentService, IConfiguration configuration)
 {
     _establishmentService = establishmentService;
     _configuration        = configuration;
 }
Exemplo n.º 12
0
 public SchoolController(
     IEstablishmentService establishmentService, IConfiguration configuration, UserInfo userInfo)
     : base(userInfo)
 {
     _establishmentService = establishmentService;
 }
 public RemovePupilDualRegistration(IEstablishmentService establishmentService)
 {
     _establishmentService = establishmentService;
 }
Exemplo n.º 14
0
 public CachedSchoolService(IRedisCache cache, IEstablishmentService establishmentService, IClient apiClient)
 {
     _cache         = cache;
     _schoolService = new SchoolService(establishmentService, apiClient);
 }
Exemplo n.º 15
0
 public HomeController(IEstablishmentService establishment)
 {
     _establishment = establishment;
 }
 public DeleteEstablishmentEventHandler(IConfiguration configuration, IEstablishmentService establishmentService, IRabbitConnector rabbitConnector)
 {
     this.configuration        = configuration;
     this.establishmentService = establishmentService;
     this.rabbitConnector      = rabbitConnector;
 }
Exemplo n.º 17
0
 public NewsService(IUnitOfWork unitOfWork, IEstablishmentService establishmentService, IMapper mapper)
 {
     _unitOfWork           = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _establishmentService = establishmentService ?? throw new ArgumentNullException(nameof(establishmentService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Exemplo n.º 18
0
 public ApiProxyController(IEstablishmentService establishmentService, IGeocodingService geocodingService)
 {
     _establishmentService = establishmentService;
     _geocodingService     = geocodingService;
 }
 public RemovePupilOtherEalExceptionalCircumstances(IDataService dataService, IAllocationYearConfig config, IEstablishmentService establishmentService)
 {
     _dataService          = dataService;
     _establishmentService = establishmentService;
     _config = config;
 }
Exemplo n.º 20
0
 public EstablishmentController(IEstablishmentService establishmentService)
 {
     this.establishmentService = establishmentService;
 }
Exemplo n.º 21
0
 public EstablishmentsController(IEstablishmentService establishmentService)
 {
     _establishmentService = establishmentService;
 }
 public EstablishmentController(IEstablishmentService _establishmentService)
 {
     this._establishmentService = _establishmentService;
 }
Exemplo n.º 23
0
 public CachedEstablishmentService(IRedisCache cache, IClient client)
 {
     _cache = cache;
     _establishmentService = new EstablishmentService(client);
 }
 public EstablishmentController(IEstablishmentService establishmentService, IMapper mapper)
 {
     _establishmentService = establishmentService;
     _mapper = mapper;
 }
Exemplo n.º 25
0
 public RemovePupilAdmittedFollowingPermanentExclusion(IEstablishmentService establishmentService)
 {
     _establishmentService = establishmentService;
 }
 public EstablishmentAppService(IEstablishmentService establishmentService) : base(establishmentService)
 {
     _establishmentService = establishmentService;
 }
Exemplo n.º 27
0
 public ManagementController(IEstablishmentService establishmentService)
 {
     _establishmentService = establishmentService;
 }
Exemplo n.º 28
0
 public EstablishmentsController(IEstablishmentService establishmentService)
 {
     _establishmentService = establishmentService ?? throw new ArgumentNullException(nameof(establishmentService));
 }
Exemplo n.º 29
0
 public EstablishmentController(IEstablishmentService establishmentService, IUserService userService)
 {
     this.establishmentService = establishmentService;
     this.userService          = userService;
 }
 public SchoolService(IEstablishmentService establishmentService, IClient apiClient)
 {
     _apiClient            = apiClient;
     _establishmentService = establishmentService;
 }
Exemplo n.º 31
0
 public LocationAwareEstablishment(IEstablishmentService establishmentService, IMapper mapper)
 {
     _establishmentService = establishmentService;
     _mapper = mapper;
 }
Exemplo n.º 32
0
 public EstablishmentController(IEstablishmentService establishmentService, INitaqatService nitaqatService)
 {
     _establishmentService = establishmentService;
     _nitaqatService       = nitaqatService;
 }