private static RunExample GetExample(IStatement example, string key, string description) { IRepository repo = new MemoryRepository(logFilePath); MyController ctrl = new MyController(repo); ctrl.Add(example); return(new RunExample(key, description, ctrl)); }