public void should_throw_if_args_is_null()
        {
            // Arrange
            var processor = new GetSitecoreItemList();

            // Act
            Action action = () => processor.Process(null);

            // Assert
            action.ShouldThrow <ArgumentNullException>().WithMessage("Value cannot be null.\r\nParameter name: args");
        }
        public void should_throw_if_config_item_is_not_specified()
        {
            // Arrange
            var processor = new GetSitecoreItemList();
            var args      = new SynchronizeTreeArgs();

            // Act
            Action action = () => processor.Process(args);

            // Assert
            action.ShouldThrow <InvalidOperationException>().WithMessage("Value can't be null: args.Context");
        }
        public void should_should_not_fill_args_with_not_integration_items_only()
        {
            // Arrange
            var processor = new GetSitecoreItemList();

            var args = new SynchronizeTreeArgs {
                Context = CreateSyncContext()
            };

            // Act
            processor.Process(args);

            // Assert
            args.IntegrationItems.Should().NotBeNull();
            args.IntegrationItems.Select(x => x.Name).Should().NotContain("notIntegrationItem");
        }