public async Task LoginTo_Success() { //Arrange authService.Setup(x => x.LoginTo(user.Login, user.Password)).Returns(Task.FromResult(true)); //Act await vm.LoginTo(user); //Assert navigateService.Verify(x => x.Navigate <HomePage>(), Times.Once); }
public override async void Execute(object parameter) { await viewModel.LoginTo((User)parameter); }