public void NotReadyToMoveIfInstanceNotSelected() { Given(); var view = new StubbedLocalServerPickerView(null) .Instance(null); When(); var localServerPickerPage = new LocalServerPickerPage(view, null, null, m_GetLocalInstances); var readyToMove = localServerPickerPage.ReadyToMove(); Then(); Assert.That(readyToMove, Is.False); }
public void ReadyToMoveIfInstanceSelectedAndUsingIntegratedSecurity() { Given(); var view = new StubbedLocalServerPickerView(null) .Instance("something"); view.SecurityType(SecurityType.Integrated); When(); var localServerPickerPage = new LocalServerPickerPage(view, null, null, m_GetLocalInstances); var readyToMove = localServerPickerPage.ReadyToMove(); Then(); Assert.That(readyToMove, Is.True); }
public void NotReadyToMoveIfUsernameNotSupplied() { Given(); var view = new StubbedLocalServerPickerView(null) .Instance("soemthingelseelse") .SecurityType(SecurityType.SqlServerAuth) .Password("rocks"); When(); var localServerPickerPage = new LocalServerPickerPage(view, null, null, m_GetLocalInstances); var readyToMove = localServerPickerPage.ReadyToMove(); Then(); Assert.That(readyToMove, Is.False); }
public void ReadyToMoveIfInstanceSelectedUsingSqlAuthAndUserPasswordProvided() { Given(); var view = new StubbedLocalServerPickerView(null) .Instance("soemthingelse") .SecurityType(SecurityType.SqlServerAuth) .UserName("tiest") .Password("rocks"); When(); var localServerPickerPage = new LocalServerPickerPage(view, null, null, m_GetLocalInstances); var readyToMove = localServerPickerPage.ReadyToMove(); Then(); Assert.That(readyToMove, Is.True); }