public static void AssemblyInitialize(TestContext context) { //CredentialsStore credentials = new CredentialsStore(); //credentials.BasicAuthorizationUsername = "******"; //credentials.BasicAuthorizationPassword = "******"; //credentials.VsoCollection = "https://*****.visualstudio.com/defaultcollection"; //CredentialsProvider.Write(@"..\..\RestCredentials.xml", credentials); CredentialsStore credentials = CredentialsProvider.Read(@"..\..\..\RestCredentials.xml"); RestClientManager.BasicAuthorizationUsername = credentials.BasicAuthorizationUsername; RestClientManager.BasicAuthorizationPassword = credentials.BasicAuthorizationPassword; VSOClientManager.VsoCollection = credentials.VsoCollection; StructuredExchangeLogger.Install(); }
public static void AssemblyCleanup() { StructuredExchangeLogger.Uninstall(); }