Exemple #1
0
        public static void Bind(Container container, IConfiguration configuration)
        {
            CQRSConfigurator.Configure(container);
            PersistenceServicesConfigurator.Configure(container);

            ServicesConfigurator.Configure(container);
            PersistenceServicesConfigurator_MongoDB.Configure(container, configuration);
            NotificationServicesConfigurator.Configure(container);

            if (Convert.ToBoolean(configuration.GetSection("GenericSettings").GetSection("Fake").Value))
            {
                PersistanceServicesConfigurator_Json.Configure(container);
            }
            else
            {
                ExternalAPIFakeServicesConfigurator.Configure(container);
            }
        }
Exemple #2
0
        internal static void Configure(Container container)
        {
            PersistenceServicesConfigurator.Configure(container);

            container.Register <
                API.Models.Servizi.Infrastruttura.GestioneSoccorso.ISaveRichiestaAssistenza,
                FakePersistenceJSon.GestioneIntervento.InserimentoRichiesta>();
            container.Register <
                API.Models.Servizi.Infrastruttura.GestioneSoccorso.IUpDateRichiestaAssistenza,
                FakePersistenceJSon.GestioneIntervento.UpDateRichiesta>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Box.IGetBoxMezzi,
                FakePersistenceJSon.Box.GetBoxMezzi>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Box.IGetBoxPersonale,
                FakePersistenceJSon.Box.GetPersonale>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Box.IGetBoxRichieste,
                FakePersistenceJSon.Box.GetRichieste>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GetFiltri.IGetFiltri,
                FakePersistenceJSon.Filtri.GetFiltri>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Marker.IGetMezziMarker,
                FakePersistenceJSon.Marker.GetMezziMarker>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Marker.IGetRichiesteMarker,
                FakePersistenceJSon.Marker.GetRichiesteMarker>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Marker.IGetSediMarker,
                FakePersistenceJSon.Marker.GetSediMarker>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Marker.IGetCentroMappaMarker,
                FakePersistenceJSon.Marker.GetCentroMappa>();

            container.Register <
                SO115App.Models.Servizi.Infrastruttura.NavBar.IGetNavbar,
                SO115App.FakePersistenceJSon.Navbar.GetNavbar>();
            container.Register <
                SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso.IGetListaSintesi,
                SO115App.FakePersistenceJSon.GestioneIntervento.GetListaSintesi>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Marker.IChiamateInCorso,
                FakePersistenceJSon.Marker.AddChiamateInCorso>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Marker.IGetChiamateInCorso,
                FakePersistenceJSon.Marker.GetChiamateInCorso>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Marker.IDeleteChiamataInCorso,
                FakePersistenceJSon.Marker.DelChiamataInCorso>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Marker.IUpDateChiamataInCorso,
                FakePersistenceJSon.Marker.UpDateChiamateInCorso>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GetComposizioneSquadre.IGetComposizioneSquadre,
                FakePersistenceJSon.Composizione.GetComposizioneSquadre>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GetComposizioneMezzi.IGetComposizioneMezzi,
                FakePersistenceJSon.Composizione.GetComposizioneMezzi>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GetPreAccoppiati.IGetPreAccoppiati,
                FakePersistenceJSon.Composizione.GetPreAccoppiati>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GetListaEventi.IGetListaEventi,
                FakePersistenceJSon.ListaEventi.GetListaEventi>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GestioneSoccorso.IGetRichiestaById,
                FakePersistenceJSon.GestioneIntervento.GetRichiestaById>();
            container.Register <
                SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso.IGetIdByCodice,
                FakePersistenceJSon.GestioneIntervento.GetIdByCodice>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GetMezzoPrenotato.IGetMezzoPrenotato,
                FakePersistenceJSon.Composizione.GetMezzoPrenotato>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GetSbloccaMezzoPrenotato.IGetSbloccaMezzoPrenotato,
                FakePersistenceJSon.Composizione.GetSbloccaMezzoPrenotato>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GetResetPrenotazioneMezzo.IGetResetPrenotazioneMezzo,
                FakePersistenceJSon.Composizione.GetResetPrenotazioneMezzo>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Composizione.IUpdateConfermaPartenze,
                FakePersistenceJSon.Composizione.UpdateConfermaPartenze>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Composizione.IUpdateStatoPartenze,
                FakePersistenceJSon.Composizione.UpdateStatoPartenza>();
            container.Register <
                SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso.Mezzi.IGetMezzoByCodice,
                SO115App.FakePersistence.JSon.GestioneMezzi.GetMezzoById>();

            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GestioneSoccorso.GenerazioneCodiciRichiesta.IGeneraCodiceRichiesta,
                SO115App.FakePersistence.JSon.Utility.GeneraCodiceRichiesta>();

            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.IGetUtenteById,
                SO115App.FakePersistence.JSon.GestioneUtenti.GetUtenteById>();

            container.Register <
                SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso.Mezzi.IGetListaMezzi,
                SO115App.FakePersistenceJSon.GestioneMezzi.GetListaMezzi>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Turni.IUpdateTurni,
                SO115App.FakePersistence.JSon.Turni.UpdateTurni>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Turni.IGetTurno,
                SO115App.FakePersistence.JSon.Turni.GetTurno>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.GestioneSoccorso.IGetSchedeContatto,
                SO115App.FakePersistence.JSon.GestioneIntervento.GetSchedeContatto>();

            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneChiamata.INotifyInserimentoChiamata,
                SO115App.SignalR.Sender.GestioneChiamata.NotificationInserimentoChiamata>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneChiamata.INotifyUpDateChiamata,
                SO115App.SignalR.Sender.GestioneChiamata.NotificationUpDateChiamata>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneChiamateInCorso.INotificationAddChiamataInCorso,
                SO115App.SignalR.Sender.GestioneChiamateInCorso.NotificationAddChiamataInCorso>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneChiamateInCorso.INotificationDeleteChiamataInCorso,
                SO115App.SignalR.Sender.GestioneChiamateInCorso.NotificationDeleteChiamataInCorso>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneChiamateInCorso.INotificationUpDateChiamataInCorso,
                SO115App.SignalR.Sender.GestioneChiamateInCorso.NotificationUpDateChiamataInCorso>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.ComposizionePartenza.MezzoPrenotato.INotificationAddPrenotazioneMezzo,
                SO115App.SignalR.Sender.ComposizionePartenza.MezzoPrenotato.NotificationAddPrenotazioneMezzo>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.ComposizionePartenza.MezzoPrenotato.INotificationRemovePrenotazioneMezzo,
                SO115App.SignalR.Sender.ComposizionePartenza.MezzoPrenotato.NotificationRemovePrenotazioneMezzo>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.ComposizionePartenza.MezzoPrenotato.INotificationResetPrenotazioneMezzo,
                SO115App.SignalR.Sender.ComposizionePartenza.MezzoPrenotato.NotificationResetPrenotazioneMezzo>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.ComposizionePartenza.INotificationConfermaPartenze,
                SO115App.SignalR.Sender.ComposizionePartenza.NotificationConfermaPartenze>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneIntervento.INotifyMessaInLavorazioneRichiesta,
                SO115App.SignalR.Sender.GestioneIntervento.NotificationInserInLavorazione>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneIntervento.INotifyDeleteInLavorazioneRichiesta,
                SO115App.SignalR.Sender.GestioneIntervento.NotificationDeleteInLavorazione>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneIntervento.INotifyDeletePresaInCaricoRichiesta,
                SO115App.SignalR.Sender.GestioneIntervento.NotificationDeletePresaInCarico>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneIntervento.INotifyPresaInCaricoRichiesta,
                SO115App.SignalR.Sender.GestioneIntervento.NotificationPresaInCarico>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestionePartenza.INotifyAggiornaStatoMezzo,
                SO115App.SignalR.Sender.GestionePartenza.NotificationAggiornaStatoMezzo>();
            container.Register <
                SO115App.Models.Servizi.Infrastruttura.Notification.GestioneIntervento.INotifyUpDateStatoRichiesta,
                SO115App.SignalR.Sender.GestioneIntervento.NotificationUpDateStato>();

            container.Register <
                API.Models.Servizi.Infrastruttura.Organigramma.IGetUnitaOperativaPerCodice,
                API.Models.Servizi.Infrastruttura.Organigramma.Implementazioni.GetUnitaOperativaPerCodice>();
            container.Register <
                API.Models.Servizi.Infrastruttura.Autenticazione.IGetOperatoreAutenticato,
                API.SOVVF.FakeImplementations.Modello.Autenticazione.GetOperatoreAutenticato>();
            container.Register <
                API.Models.Servizi.Infrastruttura.Organigramma.IGetUnitaOperativaRadice,
                API.SOVVF.FakeImplementations.Modello.Organigramma.GetUnitaOperativaRadice_CON_Direzioni_ComLazio>();
            container.Register <
                API.Models.Servizi.Infrastruttura.Organigramma.IGetUnitaOperativeVisibiliPerSoccorso,
                API.SOVVF.FakeImplementations.Modello.Organigramma.GetUnitaOperativeVisibiliPerSoccorso_OperatoreDirezioneRegionaleLazio>();
            container.Register <
                API.Models.Servizi.Infrastruttura.GestioneSoccorso.Mezzi.IGetSituazioneMezzi,
                API.SOVVF.FakeImplementations.Modello.GestioneSoccorso.Mezzi.GetSituazioneMezzi_RandomFake>();
            container.Register <
                API.Models.Servizi.Infrastruttura.Anagrafiche.IGetTipoInterventoByCodice,
                API.SOVVF.FakeImplementations.Modello.Infrastruttura.Anagrafiche.GetTipoInterventoByCodice_Fake>();
            container.Register <
                API.Models.Servizi.CQRS.Commands.GestioneSoccorso.SelezioneSquadra.CommandDTO.ITestAndSetSelezioneDisponibilitaSquadra,
                API.SOVVF.FakeImplementations.Modello.GestioneSoccorso.Risorse.TestAndSetSelezioneDisponibilitaSquadra_Fake>();
            container.Register <
                API.Models.Classi.Soccorso.Risorse.ITestAndSetSelezioneDisponibilitaMezzo,
                API.SOVVF.FakeImplementations.Modello.GestioneSoccorso.Risorse.TestAndSetSelezioneDisponibilitaMezzo_Fake>();
            container.Register <
                API.Models.Servizi.CQRS.Commands.GestioneSoccorso.DeselezionaSquadra.CommandDTO.ITestAndSetDeselezioneDisponibilitaSquadra,
                API.SOVVF.FakeImplementations.Modello.GestioneSoccorso.Risorse.TestAndSetDeselezioneDisponibilitaSquadra_DoNothing>();
            container.Register <
                API.Models.Servizi.CQRS.Commands.GestioneSoccorso.DeselezionaMezzo.CommandDTO.ITestAndSetDeselezioneDisponibilitaMezzo,
                API.SOVVF.FakeImplementations.Modello.GestioneSoccorso.Risorse.TestAndSetDeselezioneDisponibilitaMezzo_DoNothing>();
            container.Register <
                API.Models.Servizi.Infrastruttura.GestioneSoccorso.IGetRichiestaAssistenzaById,
                API.SOVVF.FakeImplementations.Modello.GestioneSoccorso.GetRichiestaAssistenzaById_Fake>();
            container.Register <
                API.Models.Servizi.Infrastruttura.GestioneSoccorso.RicercaRichiesteAssistenza.ICercaRichiesteAssistenza,
                API.Models.Classi.Soccorso.CercaRichiesteAssistenza_Empty>();
            container.Register <
                API.Models.Servizi.Infrastruttura.GestioneSoccorso.Mezzi.IGetNumeroMezziSoccorsoOraInServizio,
                API.SOVVF.FakeImplementations.Modello.GestioneSoccorso.Mezzi.GetNumeroMezziSoccorsoOraInServizio_Fake>();
            container.Register <
                API.Models.Servizi.Infrastruttura.GestioneSoccorso.IGetNumeroSquadreSoccorsoOraInServizio,
                API.SOVVF.FakeImplementations.Modello.GestioneSoccorso.Mezzi.GetNumeroSquadreSoccorsoOraInServizio_Fake>();
            container.Register <
                API.Models.Servizi.Infrastruttura.GestioneSoccorso.CompetenzeTerritoriali.IGetCompetenzeByPunto,
                API.SOVVF.FakeImplementations.Modello.Infrastruttura.CompetenzeTerritoriali.GetCompetenzeByPunto_Fake_Hardcoded>();
        }