public UnitOfWork(IInternalUserRepository internalUserRepository, IOrganizationRepository organizationRepository, IProductRepository productRepository, IDeliveryRepository deliveryRepository, DB_FCDM_BackOfficeContext dbContext) { InternalUserRepository = internalUserRepository; OrganizationRepository = organizationRepository; ProductRepository = productRepository; DeliveryRepository = deliveryRepository; _dbContext = dbContext; }
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; }
public ProductRepository(DB_FCDM_BackOfficeContext context) : base(context) { }