public PlantRepository(PlantAppDbContext context) { this.context = context; }
public PlantService(PlantAppDbContext context) { this.plantRepository = new PlantRepository(context); this.plantFactory = new PlantFactory(); this.userRepository = new UserRepository(context); }