public UnitOfWork(IInternalUserRepository internalUserRepository, IOrganizationRepository organizationRepository,
                   IProductRepository productRepository, IDeliveryRepository deliveryRepository, DB_FCDM_BackOfficeContext dbContext)
 {
     InternalUserRepository = internalUserRepository;
     OrganizationRepository = organizationRepository;
     ProductRepository      = productRepository;
     DeliveryRepository     = deliveryRepository;
     _dbContext             = dbContext;
 }
Example #2
0
        private void AddTestData(DB_FCDM_BackOfficeContext context)
        {
            User testUser1 = new User()
            {
                Id        = 1,
                FirstName = "Luke",
                LastName  = "Skywalker",
                Dni       = "29994329",
                Key       = "sdasdasdasdasd",
                Email     = "*****@*****.**",
                Province  = "CBA"
            };

            context.Users.Add(testUser1);


            context.SaveChanges();
        }
 public DeliveryRepository(DB_FCDM_BackOfficeContext context) : base(context)
 {
 }
 public OrganizationRepository(DB_FCDM_BackOfficeContext context) : base(context)
 {
 }
 public InternalUserRepository(DB_FCDM_BackOfficeContext context) : base(context)
 {
 }
 public Repository(DB_FCDM_BackOfficeContext context)
 {
     _context = context;
 }
Example #7
0
 public ProductRepository(DB_FCDM_BackOfficeContext context) : base(context)
 {
 }