public ProductionPlannerTest(ProductionPlannerFixture fixture) { productionPlanner = fixture.ServiceProvider.GetService <IProductionPlanner>(); }
/// <summary> /// Constructor method. /// </summary> /// <param name="productionPlanner">An instance of <see cref="IProductionPlanner"/> for processing the core logics.</param> /// <param name="mapper">An instance of <see cref="IMapper"/> for mapping the API models to the Core entities.</param> /// <param name="logger">An instance of <see cref="ILogger"/> for logging purposes.</param> public PowerProductionController(IProductionPlanner productionPlanner, IMapper mapper, ILogger <PowerProductionController> logger) { this.productionPlanner = productionPlanner; this.mapper = mapper; this.logger = logger; }