コード例 #1
0
        public PageNavigationServiceFixture()
        {
            _container = new PageNavigationContainerMock();

            _container.Register("PageMock", typeof(PageMock));

            _container.Register("ContentPage", typeof(ContentPageMock));
            _container.Register(typeof(ContentPageMockViewModel).FullName, typeof(ContentPageMock));

            _container.Register("NavigationPage", typeof(NavigationPageMock));
            _container.Register("NavigationPage-Empty", typeof(NavigationPageEmptyMock));
            _container.Register("NavigationPageWithStack", typeof(NavigationPageWithStackMock));
            _container.Register("NavigationPageWithStackNoMatch", typeof(NavigationPageWithStackNoMatchMock));

            _container.Register("MasterDetailPage", typeof(MasterDetailPageMock));
            _container.Register("MasterDetailPage-Empty", typeof(MasterDetailPageEmptyMock));


            _container.Register("TabbedPage", typeof(TabbedPageMock));
            _container.Register("CarouselPage", typeof(CarouselPageMock));
        }
コード例 #2
0
 public PageNavigationServiceMock(PageNavigationContainerMock containerMock, IApplicationProvider applicationProviderMock, ILoggerFacade loggerFacadeMock, PageNavigationEventRecorder recorder = null)
     : base(containerMock, applicationProviderMock, new PageBehaviorFactory(), loggerFacadeMock)
 {
     _containerMock = containerMock;
     _recorder      = recorder;
 }
コード例 #3
0
 public PageNavigationServiceMock(PageNavigationContainerMock containerMock, IApplicationProvider applicationProviderMock, ILoggerFacade loggerFacadeMock)
     : base(applicationProviderMock, loggerFacadeMock)
 {
     _containerMock = containerMock;
 }
コード例 #4
0
 public void Dispose()
 {
     _container.Dispose();
     _container = null;
 }
コード例 #5
0
 public PageNavigationServiceMock(PageNavigationContainerMock containerMock)
 {
     _containerMock = containerMock;
 }
 public PageNavigationServiceMock(PageNavigationContainerMock containerMock)
 {
     _containerMock = containerMock;
 }
コード例 #7
0
 public PageNavigationServiceMock(PageNavigationContainerMock containerMock, IApplicationProvider applicationProviderMock, ILoggerFacade loggerFacadeMock)
     : base(applicationProviderMock, loggerFacadeMock)
 {
     _containerMock = containerMock;
 }