コード例 #1
0
 public void TestInitialize()
 {
     _updateRepositoryMock = new Mock <IStudioUpdateManager>();
     _queryManager         = new Mock <IQueryManager>();
     _serverName           = Guid.NewGuid().ToString();
     _target = new ManageWebServiceSourceModel(_updateRepositoryMock.Object, _queryManager.Object, _serverName);
 }
コード例 #2
0
        public void TestWebServiceServerNameBrackets()
        {
            //arrange
            _target = new ManageWebServiceSourceModel(_updateRepositoryMock.Object, _queryManager.Object, _serverName + "(sthInBrackets)");

            //act
            var value = _target.ServerName;

            //assert
            Assert.AreEqual(_serverName, value);
        }