public TypeUseController(Startup.DeleteByNameResolver deleteAccesor, ITypeUseReadOnlyRepository readTypeUses, ICreate <ISpecification> createSpecification) { delete = new DeleteTypeUse(deleteAccesor(DeletesEmail.Client), readTypeUses); create = new CreateTypeUse(createSpecification, readTypeUses); read = new ReadTypeUse(readTypeUses); }
public EmployeeController(Startup.DeleteByNameResolver deleteAccesor, IEmployeeReadOnlyRepository read, ICreate <Employee> create) { delete = new DeleteEmployee(deleteAccesor(DeletesEmail.Employee), read); this.create = new CreateEmployee(create, read); this.read = new ReadEmployee(read); }
public ClientController(Startup.DeleteByNameResolver deleteAccesor, IClientReadOnlyRepository readClient, ICreate <Client> createClient) { delete = new DeleteClient(deleteAccesor(DeletesEmail.Client), readClient); create = new CreateClient(createClient, readClient); read = new ReadClient(readClient); }