package app

// Names declares only the capability consumed by Service.
type Names interface{ Name(id int) string }
type Service struct{ repo Names }

func New(repo Names) *Service             { return &Service{repo: repo} }
func (s *Service) Greeting(id int) string { return "hello " + s.repo.Name(id) }
