Пример #1
0
        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);
        }
Пример #2
0
 public override async void Execute(object parameter)
 {
     await viewModel.LoginTo((User)parameter);
 }