void SetupConfig(Action <MockConfiguration> customize = null)
        {
            bundle          = new TestableBundle("~");
            configuration   = new MockConfiguration(bundle);
            sourceDirectory = Mock.Of <IDirectory>();

            if (customize != null)
            {
                customize(configuration);
            }

            var configurationFactory = new Mock <ICassetteConfigurationFactory>();

            configurationFactory
            .Setup(f => f.CreateCassetteConfigurations())
            .Returns(() => new[] { configuration });

            task = new CreateBundlesImplementation(
                configurationFactory.Object,
                writer.Object,
                sourceDirectory
                );
        }
        void SetupConfig(Action<MockConfiguration> customize = null)
        {
            bundle = new TestableBundle("~");
            configuration = new MockConfiguration(bundle);
            sourceDirectory = Mock.Of<IDirectory>();

            if (customize != null) customize(configuration);

            var configurationFactory = new Mock<ICassetteConfigurationFactory>();
            configurationFactory
                .Setup(f => f.CreateCassetteConfigurations())
                .Returns(() => new[] { configuration });

            task = new CreateBundlesImplementation(
                configurationFactory.Object,
                writer.Object,
                sourceDirectory
            );
        }