public SpaceViewModelTests()
 {
     _localDBServiceMock.Setup(dp => dp.GetRandomPoint()).Returns(SpaceNavigationMockData.Center());
     _localDBServiceMock.Setup(dp => dp.GetLocalSubjects(It.IsAny <SpaceNavigation>(), true))
     .Returns(PanoptesServiceMockData.TableSubjects());
     _localDBServiceMock.Setup(dp => dp.GetLocalSubjects(It.IsAny <SpaceNavigation>(), false))
     .Returns(PanoptesServiceMockData.TableSubjects());
     _cutoutServiceMock.Setup(dp => dp.GetSpaceCutout(It.IsAny <SpaceNavigation>())).ReturnsAsync(CutoutServiceMockData.SpaceCutout());
     _viewModel = new SpaceViewModel(_localDBServiceMock.Object, _cutoutServiceMock.Object);
 }
Exemple #2
0
        public ClassificationPanelViewModelTests()
        {
            _panoptesServiceMock.Setup(dp => dp.GetWorkflowAsync("1"))
            .ReturnsAsync(PanoptesServiceMockData.Workflow("1"));
            _panoptesServiceMock.Setup(dp => dp.CreateClassificationAsync(It.IsAny <Classification>()))
            .ReturnsAsync(new ClassificationCounts(1, 0, 0, 1));

            _localDBServiceMock.Setup(dp => dp.GetLocalSubject(It.IsAny <string>())).Returns(PanoptesServiceMockData.TableSubject());
            _localDBServiceMock.Setup(dp => dp.GetQueuedSubjects()).Returns(PanoptesServiceMockData.TableSubjects());

            _viewModel = new ClassificationPanelViewModel(_panoptesServiceMock.Object, _localDBServiceMock.Object, new BlueUser());
        }