Exemple #1
0
        public void TestsCleanup()
        {
            this.navigationService   = null;
            this.localizationService = null;
            this.storageService      = null;

            this.shellViewModel = null;
        }
Exemple #2
0
        public void TestsCleanup()
        {
            this.boxService          = null;
            this.navigationService   = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.discoverViewModel = null;
        }
Exemple #3
0
        public void TestsInitialize()
        {
            this.navigationService   = new FakeNavigationService();
            this.localizationService = new FakeLocalizationService();
            this.storageService      = new FakeStorageService();

            this.shellViewModel = new ShellViewModel(this.navigationService, this.localizationService,
                                                     this.storageService);
        }
Exemple #4
0
        public void TestsCleanup()
        {
            this.userService         = null;
            this.navigationService   = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.registerViewModel = null;
        }
        public void TestsCleanup()
        {
            this.storageService      = null;
            this.navigationService   = null;
            this.postService         = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.homeViewModel = null;
        }
Exemple #6
0
        public void TestsCleanup()
        {
            this.boxService          = null;
            this.storageService      = null;
            this.navigationService   = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.myBoxesViewModel = null;
        }
Exemple #7
0
        public void TestsInitialize()
        {
            this.boxService          = new FakeBoxService();
            this.navigationService   = new FakeNavigationService();
            this.localizationService = new FakeLocalizationService();
            this.dialogService       = new FakeDialogService();

            this.discoverViewModel = new DiscoverViewModel(this.boxService, this.navigationService,
                                                           this.localizationService, this.dialogService);
        }
Exemple #8
0
        public void TestsCleanUp()
        {
            this.userService         = null;
            this.storageService      = null;
            this.navigationService   = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.loginViewModel = null;
        }
Exemple #9
0
        public void TestsInitialize()
        {
            this.userService         = new FakeUserService();
            this.navigationService   = new FakeNavigationService();
            this.localizationService = new FakeLocalizationService();
            this.dialogService       = new FakeDialogService();

            this.registerViewModel = new RegisterViewModel(this.userService, this.navigationService,
                                                           this.localizationService, this.dialogService);
        }
        public void TestsInitialize()
        {
            this.storageService      = new FakeStorageService();
            this.navigationService   = new FakeNavigationService();
            this.postService         = new FakePostService();
            this.localizationService = new FakeLocalizationService();
            this.dialogService       = new FakeDialogService();

            this.homeViewModel = new HomeViewModel(this.storageService, this.navigationService,
                                                   this.postService, this.localizationService, this.dialogService);
        }
Exemple #11
0
        public void TestsInitialize()
        {
            this.boxService          = new FakeBoxService();
            this.storageService      = new FakeStorageService();
            this.navigationService   = new FakeNavigationService();
            this.localizationService = new FakeLocalizationService();
            this.dialogService       = new FakeDialogService();

            this.myBoxesViewModel = new MyBoxesViewModel(this.boxService, this.storageService,
                                                         this.navigationService, this.localizationService, this.dialogService);
        }
Exemple #12
0
        public void TestsInitialize()
        {
            this.userService         = new FakeUserService();
            this.storageService      = new FakeStorageService();
            this.navigationService   = new FakeNavigationService();
            this.localizationService = new FakeLocalizationService();
            this.dialogService       = new FakeDialogService();

            this.loginViewModel = new LoginViewModel(this.userService, this.storageService,
                                                     this.navigationService, this.localizationService, this.dialogService);
        }
Exemple #13
0
        public void OnActionExecutedAddsAllPhrasesToModel()
        {
            FakeLocalizationService locService = new FakeLocalizationService();

            OxiteModel model = new OxiteModel();

            ActionExecutedContext context = new ActionExecutedContext()
            {
                Result = new ViewResult() { ViewData = new ViewDataDictionary(model) }
            };

            LocalizationActionFilter filter = new LocalizationActionFilter(locService);

            filter.OnActionExecuted(context);

            Assert.NotNull(model.GetModelItem<ICollection<Phrase>>());
            Assert.Same(locService.Phrases, model.GetModelItem<ICollection<Phrase>>());
        }