Exemplo n.º 1
0
 public AppointmentRepository(
     PetClinicDbContext context,
     IMapper mapper,
     IAppointmentFactory appointmentFactory)
     : base(context)
 {
     this.mapper             = mapper;
     this.appointmentFactory = appointmentFactory;
 }
Exemplo n.º 2
0
        // 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();
        }
Exemplo n.º 3
0
 public GetVetsHandler(PetClinicDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 4
0
 public CreateSpecialtyHandler(PetClinicDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 5
0
 public VetsController(PetClinicDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemplo n.º 6
0
 public SpecialtiesController(PetClinicDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemplo n.º 7
0
 public AdoptionRepository(PetClinicDbContext context, IMapper mapper, IPetFactory petFactory)
     : base(context)
 {
     this.mapper     = mapper;
     this.petFactory = petFactory;
 }
Exemplo n.º 8
0
 public GetSpecialtyHandler(PetClinicDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public ClientRepository(PetClinicDbContext context, IMapper mapper, IClientFactory clientFactory)
     : base(context)
 {
     this.mapper        = mapper;
     this.clientFactory = clientFactory;
 }
Exemplo n.º 10
0
 public DoctorRepository(PetClinicDbContext context, IMapper mapper)
     : base(context)
     => this.mapper = mapper;