Example #1
0
 public ProductionRepository(
     SapContext context,
     IntranetContext intranetContext,
     Fmsb2Context fmsb2Context,
     IconicsContext iconicsContext
     )
 {
     _context         = context ?? throw new ArgumentNullException(nameof(context));
     _intranetContext =
         intranetContext ?? throw new ArgumentNullException(nameof(intranetContext));
     _fmsb2Context   = fmsb2Context ?? throw new ArgumentNullException(nameof(fmsb2Context));
     _iconicsContext =
         iconicsContext ?? throw new ArgumentNullException(nameof(iconicsContext));
 }
        /// <summary>
        ///     Initializes test data
        /// </summary>
        public static void InitializeTestData()
        {
            using (var context = new IntranetContext())
            {
                var connection = (SqlConnection)context.Database.Connection;
                var command    = new SqlCommand
                {
                    Connection = connection
                };

                connection.Open();

                DeleteAll(command);

                // Insert Test
                SetAutoIncrementOnTable(connection, "Model", true);
                InsertModule(command);
                SetAutoIncrementOnTable(connection, "Model", false);
            }
        }
Example #3
0
 public DefaultFinishActionsDecorationFilter(IntranetContext context)
 {
     this.Context = context;
 }
Example #4
0
 public FormulariosController(IntranetContext context)
 {
     _context = context;
 }
 public EosController(IntranetContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public UsuariosController(IntranetContext context)
 {
     _context = context;
 }
Example #7
0
 public CwaContentValidationFilter(IntranetContext context)
 {
     this.Context = context;
 }
 public SalasController(IntranetContext context)
 {
     _context = context;
 }
Example #9
0
 public KpiTargetService(IntranetContext context, Fmsb2Context fmsb2Context)
     : base(fmsb2Context)
 {
     _context      = context ?? throw new ArgumentNullException(nameof(context));
     _fmsb2Context = fmsb2Context ?? throw new ArgumentNullException(nameof(fmsb2Context));
 }
 public Noticias1Controller(IntranetContext context)
 {
     _context = context;
 }
 public SolicitudVacacionesController(IntranetContext context)
 {
     _context = context;
 }
 public IntranetLibraryRepository(IntranetContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public EmpleadosController(IntranetContext context)
 {
     _context = context;
 }
Example #14
0
 public UnitOfWork(IDatabaseFactory dbFactory)
 {
     this.dbFactory = dbFactory;
     dataContext    = dbFactory.DataContext;
 }
 public ImagePathResolver(IntranetContext context)
 {
     this.Context = context;
 }
Example #16
0
 public DatabaseFactory()
 {
     dataContext = new IntranetContext();
 }
 public ContactoesController(IntranetContext context)
 {
     _context = context;
 }