Assembly info

Java code posted by test
created at 20 Nov 00:55, updated at 20 Nov 01:00

Edit | Back
1
2
3
4
5
6
7
8
            Indexer.TFSUtil tfsUtil = new Indexer.TFSUtil();
            tfsUtil.UnitTesting = true;
            Assert.IsNotNull(tfsUtil.ConnectToTFS(@"http://israel2-pc:8080/tfs/", @"israel2-pc\israel", "4341"));
            List<Indexer.TFSItem> itemsInFolder = tfsUtil.GetFilesInTFSDirectory();
            Assert.IsNotNull(itemsInFolder);
            //Filter and send only .cs and .xml files
            itemsInFolder = itemsInFolder.FindAll((x) => x.FileType == ".cs" || x.FileType == ".xml");
            tfsUtil.SaveFilesToDatabase(itemsInFolder);
563 Bytes in 2 ms with coderay