public AppointmentRepository( PetClinicDbContext context, IMapper mapper, IAppointmentFactory appointmentFactory) : base(context) { this.mapper = mapper; this.appointmentFactory = appointmentFactory; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, PetClinicDbContext dbContext, ILogger <Startup> logger) { app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Pet Clinic V1"); }); if (env.IsDevelopment()) { var seeder = new DatabaseSeeder(dbContext, logger); seeder.Seed(); } app.UseMvc(); }
public GetVetsHandler(PetClinicDbContext dbContext) { _dbContext = dbContext; }
public CreateSpecialtyHandler(PetClinicDbContext dbContext) { _dbContext = dbContext; }
public VetsController(PetClinicDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public SpecialtiesController(PetClinicDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public AdoptionRepository(PetClinicDbContext context, IMapper mapper, IPetFactory petFactory) : base(context) { this.mapper = mapper; this.petFactory = petFactory; }
public GetSpecialtyHandler(PetClinicDbContext dbContext) { _dbContext = dbContext; }
public ClientRepository(PetClinicDbContext context, IMapper mapper, IClientFactory clientFactory) : base(context) { this.mapper = mapper; this.clientFactory = clientFactory; }
public DoctorRepository(PetClinicDbContext context, IMapper mapper) : base(context) => this.mapper = mapper;