Skip to content

How to manually initialize a plugin in Unit Test project

imgen edited this page Apr 27, 2014 · 2 revisions

Something like below will work

   IMvxPluginManager pluginManager = new MvxFilePluginManager(".wpf", string.Empty);
   Ioc.RegisterSingleton( pluginManager );

   var sqlitePluginBootstrap = new SqlitePluginBootstrap();
   sqlitePluginBootstrap.Run();

Since Unit Test project would be a .NET 4.0/4.5 project, so we use WPF version of plugin manager Also for SQLite plugin to work, we need to follow this link SQLite plugin in MVVMCross