Esempio n. 1
0
        public void SetUp()
        {
            MvxSingleton.ClearAllSingletons();
            ClearAll();

            Dispatcher = new MockMvxViewDispatcher();
            Ioc.RegisterSingleton <IMvxMainThreadDispatcher>(Dispatcher);
            Ioc.RegisterSingleton <IMvxViewDispatcher>(Dispatcher);

            DataClient       = new MockCampDataClient();
            Messenger        = new MvxMessengerHub();
            CodeCampService  = new CodeCampService(new InMemoryFileManager(), new MvxJsonConverter(), DataClient);
            ComposeEmailTask = new MockComposeEmailTask();
            WebBrowserTask   = new MockWebBrowserTask();

            Mvx.RegisterSingleton <IMvxStringToTypeParser>(new MvxStringToTypeParser());

            SetUpFixture();
        }
        public void SetUp()
        {
            MvxSingleton.ClearAllSingletons();
            ClearAll();

            Dispatcher = new MockMvxViewDispatcher();
            Ioc.RegisterSingleton<IMvxMainThreadDispatcher>(Dispatcher);
            Ioc.RegisterSingleton<IMvxViewDispatcher>(Dispatcher);

            DataClient = new MockCampDataClient();
            Messenger = new MvxMessengerHub();
            CodeCampService = new CodeCampService(new InMemoryFileManager(), new MvxJsonConverter(), DataClient);
            ComposeEmailTask = new MockComposeEmailTask();
            WebBrowserTask = new MockWebBrowserTask();

            Mvx.RegisterSingleton<IMvxStringToTypeParser>(new MvxStringToTypeParser());

            SetUpFixture();
        }