示例#1
0
        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();
        }
示例#2
0
        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();
        }