Пример #1
0
        public void TestsCleanup()
        {
            this.userService         = null;
            this.navigationService   = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.registerViewModel = null;
        }
Пример #2
0
        public void TestsCleanup()
        {
            this.postService    = null;
            this.commentService = null;
            this.storageService = null;
            this.dialogService  = null;

            this.postViewModel = null;
        }
Пример #3
0
        public void TestsCleanup()
        {
            this.boxService          = null;
            this.navigationService   = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.discoverViewModel = null;
        }
Пример #4
0
        public void TestsInitialize()
        {
            this.postService    = new FakePostService();
            this.commentService = new FakeCommentService();
            this.storageService = new FakeStorageService();
            this.dialogService  = new FakeDialogService();

            this.postViewModel = new PostViewModel(this.postService, this.commentService,
                                                   this.storageService, this.dialogService);
        }
Пример #5
0
        public void TestsCleanup()
        {
            this.storageService      = null;
            this.navigationService   = null;
            this.postService         = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.homeViewModel = null;
        }
Пример #6
0
        public void TestsCleanup()
        {
            this.boxService          = null;
            this.storageService      = null;
            this.navigationService   = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.myBoxesViewModel = null;
        }
Пример #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);
        }
Пример #8
0
        public void TestsCleanup()
        {
            this.postService       = null;
            this.boxService        = null;
            this.navigationService = null;
            this.storageService    = null;
            this.dialogService     = null;

            this.boxViewModel = null;
        }
Пример #9
0
        public void TestsCleanUp()
        {
            this.userService         = null;
            this.storageService      = null;
            this.navigationService   = null;
            this.localizationService = null;
            this.dialogService       = null;

            this.loginViewModel = null;
        }
Пример #10
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);
        }
Пример #11
0
        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);
        }
Пример #12
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);
        }
Пример #13
0
        public void TestsInitialize()
        {
            this.postService       = new FakePostService();
            this.boxService        = new FakeBoxService();
            this.navigationService = new FakeNavigationService();
            this.storageService    = new FakeStorageService();
            this.dialogService     = new FakeDialogService();

            this.boxViewModel = new BoxViewModel(this.postService, this.boxService,
                                                 this.navigationService, this.storageService, this.dialogService);
        }
Пример #14
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);
        }
Пример #15
0
        public void ProblemViewModel_SaveAndLoadIntegrationTest()
        {
            //Arrange
            var fileSystemMock    = new FakeFileSystem();
            var problemSerializer = new ProblemSerializer(fileSystemMock);
            var dialogService     = new FakeDialogService()
            {
                FilePath = "c:\\Test\\IntegrationTest.3DPoC"
            };

            var problemViewModel = new ProblemViewModel(new ModelProblem("OLD"), problemSerializer, dialogService);

            SetupProblemViewModel(problemViewModel);

            //Act
            problemViewModel.SaveProblemCommand.Execute(null);
            problemViewModel.LoadProblemCommand.Execute(null);

            //Assert
            Assert.That(fileSystemMock.ExistingFile, Is.Not.Null);
            Assert.That(fileSystemMock.ExistingFileContent, Is.Not.Null);
            Assert.That(fileSystemMock.CreatedDirectory, Is.Not.Null);
            AssertProblemViewModel(problemViewModel);
        }