public WhenTheLoginButtonIsPressed() { var mockAuth = new MockAuthenticationService(); _loginViewModel = new LoginViewModel(mockAuth) { QuickLoginUsername = "******" }; _loginViewModel.SignInCommand.Execute(null); }
public WhenTheLoginProcessFinishes() { _mockAuth = new MockAuthenticationService(); _loginViewModel = new LoginViewModel(_mockAuth) { QuickLoginUsername = "******" }; _loginViewModel.SignInCommand.Execute(null); _mockAuth.RaiseLoginComplete(); }
public WhenTheLoginProcessFails() { _mockAuth = new MockAuthenticationService(); _loginViewModel = new LoginViewModel(_mockAuth) { QuickLoginUsername = "******" }; _loginViewModel.SignInCommand.Execute(null); _exception = new SecurityException("login failed"); _mockAuth.RaiseLoginComplete(_exception); }