public void TestLogIn()
        {
            var finished = new ManualResetEvent(false);

            _sut.LoggedIn += (sender, @event) => {
                _recivedEvents.Add(@event);
                finished.Set();
            };
            _sut.LogIn("Mateusz", "Bartczak");
            finished.WaitOne();
            var lie = (LogInEvent)_recivedEvents[0];

            Assert.That(lie.IsLogged, Is.EqualTo(true));
        }
Пример #2
0
 private void LogMeIn()
 {
     _dispatcher.LogIn(UsernameTextBox.Text, PasswordBox.Password);
 }