Exemplo n.º 1
0
 public async void LoginCommandShouldCallLoginService()
 {
     var vm = new LoginViewModel();
     await vm.LoginCommand.Execute();
     LoginServiceMock.Verify(m => m.Login(), Times.Once());
 }
Exemplo n.º 2
0
 public void ShouldLogoutWhenLoginPageNavigatedTo()
 {
     var vm = new LoginViewModel();
     LoginServiceMock.Verify(l => l.Logout(), Times.Once());
 }