public WorkflowServices(IUnitOfWork context, UserManager <Usuario> userManager, GetterUtils getterUtils, SignInManager <Usuario> signInManager) { _context = context; _userManager = userManager; _getterUtils = getterUtils; _runnerItinerario = new RunnerWriteDb <ItinerarioCommand, Itinerario>( new RegisterItinerarioAction(new ItinerarioDbAccess(_context)), _context); _runnerViaje = new RunnerWriteDb <ViajeCommand, Viaje>( new RegisterViajeAction(new ViajeDbAccess(_context)), _context); _runnerViajeInvitado = new RunnerWriteDb <ViajeInvitado, ViajeInvitado>( new RegisterViajeInvitadoAction(new ViajeInvitadoDbAccess(_context)), _context); _itinerarioDbAccess = new ItinerarioDbAccess(_context); _viajeDbAccess = new ViajeDbAccess(_context); _paisDbAccess = new PaisDbAccess(_context); _institucionDbAccess = new InstitucionDbAccess(_context); _userDbAccess = new UserDbAccess(_context, signInManager, userManager); _visaDbAccess = new VisaDbAccess(context); _viajeInvitadoDbAccess = new ViajeInvitadoDbAccess(context); _historialDbAccess = new HistorialDbAccess(context); _workflowManagerLocal = new WorkflowManagerLocal(context); _workflowManagerGuest = new WorkflowManagerGuest(context); }
public RegisterItinerarioAction(ItinerarioDbAccess dbAccess) { _dbAccess = dbAccess; }