Beispiel #1
0
        public void ValidateUserInvokesConnectOnSession()
        {
            //Arrange
            var expectedProjectId = Api.Properties.Settings.Default.ProjectId;

            var sut = new Facade{Session = SessionMock.Object};

            //Act
            var actual = sut.ValidateUser("user", "password");

            //Assert
            Assert.IsTrue(actual);

            SessionMock.Verify(session => session.Connect(expectedProjectId, "user", "password"));
        }