Пример #1
0
        public void DebugOutputViewModel_OpenNullLineItemDoesntStartProcess()
        {
            var vm = new DebugOutputViewModel(new Mock <IEventPublisher>().Object, GetEnvironmentRepository(), new Mock <IDebugOutputFilterStrategy>().Object);

            vm.OpenMoreLink(null);
            Assert.IsNull(vm.ProcessController);
        }
 public void OpenNullLineItemDoesntStartProcess()
 {
     ImportService.CurrentContext = _importServiceContext;
     var vm = new DebugOutputViewModel();
     vm.OpenMoreLink(null);
     Assert.IsNull(vm.ProcessController);
 }
Пример #3
0
        public void OpenNullLineItemDoesntStartProcess()
        {
            ImportService.CurrentContext = _importServiceContext;
            var vm = new DebugOutputViewModel();

            vm.OpenMoreLink(null);
            Assert.IsNull(vm.ProcessController);
        }
Пример #4
0
        public void DebugOutputViewModel_OpenEmptyMoreLinkDoesntStartProcess()
        {
            var vm = new DebugOutputViewModel(new Mock <IEventPublisher>().Object, GetEnvironmentRepository(), new Mock <IDebugOutputFilterStrategy>().Object);

            var lineItem = new Mock <IDebugLineItem>();

            lineItem.SetupGet(l => l.MoreLink).Returns("");

            vm.OpenMoreLink(lineItem.Object);
            Assert.IsNull(vm.ProcessController);
        }
Пример #5
0
        public void OpenEmptyMoreLinkDoesntStartProcess()
        {
            ImportService.CurrentContext = _importServiceContext;
            var vm = new DebugOutputViewModel();

            var lineItem = new Mock <IDebugLineItem>();

            lineItem.SetupGet(l => l.MoreLink).Returns("");

            vm.OpenMoreLink(lineItem.Object);
            Assert.IsNull(vm.ProcessController);
        }
Пример #6
0
        public void OpenEmptyMoreLinkDoesntStartProcess()
        {
            ImportService.CurrentContext = _importServiceContext;
            var vm = new DebugOutputViewModel();

            var lineItem = new Mock<IDebugLineItem>();
            lineItem.SetupGet(l => l.MoreLink).Returns("");

            vm.OpenMoreLink(lineItem.Object);
            Assert.IsNull(vm.ProcessController);
        }