public void TestCreateNew() { _sidePanel.HasActiveAnalyses.Should().BeFalse(); _sidePanel.Active.Should().BeEmpty(); _sidePanel.CreateNew(); _sidePanel.HasActiveAnalyses.Should().BeTrue(); _sidePanel.Active.Should().HaveCount(1); }
private void CreateAnalysis() { var viewModel = _analysesSidePanel.CreateNew(); viewModel.OnRemove += AnalysisViewModelOnOnRemove; Analysis = viewModel; }