public void TestInitialize() { _updateRepositoryMock = new Mock <IStudioUpdateManager>(); _queryManager = new Mock <IQueryManager>(); _serverName = Guid.NewGuid().ToString(); _target = new ManageWebServiceSourceModel(_updateRepositoryMock.Object, _queryManager.Object, _serverName); }
public void TestWebServiceServerNameBrackets() { //arrange _target = new ManageWebServiceSourceModel(_updateRepositoryMock.Object, _queryManager.Object, _serverName + "(sthInBrackets)"); //act var value = _target.ServerName; //assert Assert.AreEqual(_serverName, value); }