forked from OfficeDev/vipr-t4templatewriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIntegrationTest.cs
28 lines (23 loc) · 904 Bytes
/
IntegrationTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Vipr;
namespace T4TemplateWriterTests {
class IntegrationTest {
private Vipr.Bootstrapper bootstrapper;
private String inputFile = @"http://services.odata.org/V4/OData/OData.svc/$metadata";
private String readerName = @"--reader=Vipr.Reader.OData.v4";
private String writerName = @"--writer=Vipr.T4TemplateWriter";
private String outputPath = @"--outputPath=.\output";
public IntegrationTest() {
bootstrapper = new Vipr.Bootstrapper();
}
public void Run(Boolean interactive) {
bootstrapper.Start(new String[] { inputFile, readerName, writerName, outputPath });
if (interactive) Console.ReadKey();
}
}
}