public void SetUp() { Xamarin.Forms.Mocks.MockForms.Init(); this._kernel = new StandardKernel(); this._app = new Application(); ZeroApp .On(this._app) .WithContainer(NinjectZeroContainer.Build(this._kernel)) .RegisterShell(() => new FirstShell()) .Start(); }
public App() { this.InitializeComponent(); ZeroApp .On(this) .WithContainer(NinjectZeroContainer.Build(Kernel)) .RegisterShell(() => new SimpleShell()) .RegisterShell(() => new TabbedShell()) .StartWith <SimpleShell>(); Kernel.Bind <IDummyService>().To <DummyService>().InSingletonScope(); }