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)); }
private void LogMeIn() { _dispatcher.LogIn(UsernameTextBox.Text, PasswordBox.Password); }