예제 #1
0
 public virtual void BeforeQueryStatusEditPrigIndirectionSettings(PrigPackageViewModel vm)
 {
     var projItem = MonitoringSelectionService.GetSelectedItem<ProjectItem>();
     vm.SetEditPrigIndirectionSettingsCommandVisibility(projItem);
 }
예제 #2
0
        public bool SetEditPrigIndirectionSettingsCommandVisibility_(IFixture fixture)
        {
            // Arrange
            var vm = new PrigPackageViewModel();

            // Act
            vm.SetEditPrigIndirectionSettingsCommandVisibility(fixture.Freeze<ProjectItem>());

            // Assert
            fixture.Freeze<Mock<ProjectItem>>().VerifyAll();
            return vm.IsEditPrigIndirectionSettingsCommandVisible.Value;
        }