// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, BackEndTestContext db) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseGraphiQl(); app.UseMvc(); }
public static void CodeFirst() { using (BackEndTestContext context = new BackEndTestContext()) { context.Clientes.Add(new Domain.Models.Cliente("Lucinda Gekcs", 28)); context.Clientes.Add(new Domain.Models.Cliente("Miranda Malis", 32)); context.Clientes.Add(new Domain.Models.Cliente("Fagner Moura", 17)); context.Clientes.Add(new Domain.Models.Cliente("Rodolfo Jussso", 39)); context.Clientes.Add(new Domain.Models.Cliente("Fabio Resende", 55)); context.Clientes.Add(new Domain.Models.Cliente("Maria Lucia", 29)); context.SaveChanges(); } }
public MovementRepository(BackEndTestContext db) { _db = db; }
public Repository(BackEndTestContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public ProductController(BackEndTestContext backEndTestContext) { _backEndTestContext = backEndTestContext; }
public UserRepository(BackEndTestContext db) { _db = db; }
public ClienteRepository(BackEndTestContext context) : base(context) { }
public UnitOfWork(BackEndTestContext context) { _context = context; }