Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use plugin in unit tests #9

Open
juniorjrjl opened this issue Nov 12, 2018 · 1 comment
Open

Use plugin in unit tests #9

juniorjrjl opened this issue Nov 12, 2018 · 1 comment

Comments

@juniorjrjl
Copy link

Ho, whe I try test My viewmodel I get the follow exception:

System.NotImplementedException HResult=0x80004001 Message=This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation. Source=Plugin.Multilingual StackTrace: at Plugin.Multilingual.CrossMultilingual.get_Current() at TrackerMobile.Forms.ViewModels.EnvioComandoVeiculoViewModel..ctor(AbstractEnvioComandoService envioComandoService, IDBUtils dBUtils, AbstractParametroDAO parametroDAO, IPageDialogService pageDialogService, INavigationService navigationService) in A:\projetos_estudo\C#\mobile\TrackerMobile\TrackerMobile.Forms\TrackerMobile.Forms\ViewModels\EnvioComandoVeiculoViewModel.cs:line 124 at TrackerMobile.TesteUnitario.ViewModel.EnvioComandoVeiculoViewModelTest.QuandoIniciarViewModel_NaoDispararException() in A:\projetos_estudo\C#\mobile\TrackerMobile\TrackerMobile.TesteUnitario\ViewModel\EnvioComandoVeiculoViewModeltest.cs:line 74
How can I configure my test tu work ? Follow my viewmodel:

public EnvioComandoVeiculoViewModel(AbstractEnvioComandoService envioComandoService, IDBUtils dBUtils, AbstractParametroDAO parametroDAO, IPageDialogService pageDialogService, INavigationService navigationService) { _envioComandoService = envioComandoService; _dBUtils = dBUtils; _parametroDAO = parametroDAO; _pageDialogService = pageDialogService; _navigationService = navigationService; _parametroDAO.DbPath = _dBUtils.ObterCaminhoBanco(); _envioComandoService.IpServidor = _parametroDAO.BuscarIp(); _envioComandoService.AccessToken = SessaoUsuario.UsuarioLogado.AccessToken; _envioComandoService.IdiomaAplicacao = CrossMultilingual.Current.CurrentCultureInfo.ToString(); }

thank you :)

@jm-parent
Copy link

Same sh** here :D

That's an old issue , but i have to try ahah.

If you found a solution and remember it @juniorjrjl , i'm listening :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants