public void ParseFeaturesTest() { var client = new TFSClient("https://tfs.server.com/collection", "token"); foreach (var test in TestCaseParser.ParseFeatures(Directory.GetFiles(@"C:\Source\...", "*.feature"))) { client.UpdateTestCase(test).Wait(); } }
static void Sync(CommandOptions opts) { Console.WriteLine(opts.ToString()); var TFSClient = new TFSClient(opts.ServerTfs, opts.Token); var files = Directory.GetFiles(opts.FearuresPath, "*.feature"); if (files.Count() == 0) { throw new Exception($"В папке {opts.FearuresPath} не найдено feature файлов"); } Task.WhenAll(TestCaseParser.ParseFeatures(files).Select(test => TFSClient.UpdateTestCase(test))).Wait(); }