public TestController() { string tfsServerAddress = ConfigurationManager.AppSettings["TfsServerAddress"]; string domain = ConfigurationManager.AppSettings["TfsDomain"]; string username = ConfigurationManager.AppSettings["TfsUsername"]; string password = ConfigurationManager.AppSettings["TfsPassword"]; ICredentialsProvider credentialsProvider = new CredentialsProvider(username, password, domain); this.testCommunicator = new TestCommunicator(tfsServerAddress, credentialsProvider); }
public TestController() { string tfsServerAddress = ConfigurationManager.AppSettings["TfsServerAddress"]; string domain = ConfigurationManager.AppSettings["TfsDomain"]; string username = ConfigurationManager.AppSettings["TfsUsername"]; string password = ConfigurationManager.AppSettings["TfsPassword"]; NetworkCredential netCred = new NetworkCredential( username, password); this.testCommunicator = new TestCommunicator(tfsServerAddress, netCred); }
public TestController(ITestCommunicator testCommunicator) { this.testCommunicator = testCommunicator; }
public TestControllerTests() { this.testCommunicator = MockRepository.GenerateStub<ITestCommunicator>(); this.target = new TestController(testCommunicator); }