Пример #1
0
        public App()
        {
            this.InitializeComponent();

            ZeroApp.On(this)
            .WithContainer(TinyIocZeroContainer.Build())
            .RegisterShell(() => new AppShell())
            .RegisterShell(() => new TabbedShell())
            .StartWith <AppShell>();
        }
Пример #2
0
        public void SetUp()
        {
            Xamarin.Forms.Mocks.MockForms.Init();
            this._tinyIoCContainer = new TinyIoCContainer();
            this._app = new Application();

            ZeroApp
            .On(this._app)
            .WithContainer(TinyIocZeroContainer.Build(this._tinyIoCContainer))
            .RegisterShell(() => new FirstShell())
            .Start();
        }