Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }