public ComponentController(Startup.DeleteByIdResolver deleteAccesor, IComponentReadOnlyRepository readComponent, ICreate <Component> createComponent, IUpdate <Component> updateComponent) { delete = new DeleteComponent(deleteAccesor(WebApi.DeletesID.Component), readComponent); create = new CreateComponent(createComponent, readComponent); update = new UpdateComponent(updateComponent, readComponent); read = new ReadComponent(readComponent); }
public ComputerController(IDirectorComputer director, ITypeUseReadOnlyRepository typeRepo, Startup.DeleteByIdResolver deleteAccesor, IComputerReadOnlyRepository read) { this.director = director; this.typeRepo = typeRepo; delete = new DeleteComputer(deleteAccesor(WebApi.DeletesID.Computer), read); }
public OrderController(Startup.DeleteByIdResolver deleteAccesor, IOrderReadOnlyRepository readOrder) { delete = new DeleteOrder(deleteAccesor(DeletesID.Order), readOrder); read = new ReadOrder(readOrder); }