private bool CheckHash(string hash) { FileHasherContext context = new FileHasherContext(); FileRepository repository = new FileRepository(context); return(repository.CheckHash(hash)); }