public void DebugOutputViewModelCantOpenNullMoreLinkLineItem() { ImportService.CurrentContext = _importServiceContext; var vm = new DebugOutputViewModel(); Assert.IsTrue(vm.CanOpenMoreLink(null).Equals(false)); }
public void DebugOutputViewModel_CantOpenEmptyMoreLinkLineItem() { var vm = new DebugOutputViewModel(new Mock <IEventPublisher>().Object, GetEnvironmentRepository(), new Mock <IDebugOutputFilterStrategy>().Object); var lineItem = new Mock <IDebugLineItem>(); lineItem.SetupGet(l => l.MoreLink).Returns(""); Assert.IsTrue(vm.CanOpenMoreLink(lineItem.Object).Equals(false)); }
public void DebugOutputViewModelCantOpenEmptyMoreLinkLineItem() { ImportService.CurrentContext = _importServiceContext; var vm = new DebugOutputViewModel(); var lineItem = new Mock <IDebugLineItem>(); lineItem.SetupGet(l => l.MoreLink).Returns(""); Assert.IsTrue(vm.CanOpenMoreLink(lineItem.Object).Equals(false)); }
public void DebugOutputViewModel_CantOpenNullMoreLinkLineItem() { var vm = new DebugOutputViewModel(new Mock <IEventPublisher>().Object, GetEnvironmentRepository(), new Mock <IDebugOutputFilterStrategy>().Object); Assert.IsTrue(vm.CanOpenMoreLink(null).Equals(false)); }
public void DebugOutputViewModelCantOpenNullMoreLinkLineItem() { ImportService.CurrentContext = _importServiceContext; var vm = new DebugOutputViewModel(); Assert.IsTrue(vm.CanOpenMoreLink(null).Equals(false)); }
public void DebugOutputViewModelCantOpenEmptyMoreLinkLineItem() { ImportService.CurrentContext = _importServiceContext; var vm = new DebugOutputViewModel(); var lineItem = new Mock<IDebugLineItem>(); lineItem.SetupGet(l => l.MoreLink).Returns(""); Assert.IsTrue(vm.CanOpenMoreLink(lineItem.Object).Equals(false)); }