Example #1
0
 internal SvnVacuumFixture()
 {
     Environment   = Substitute.For <ICakeEnvironment>();
     SvnClient     = Substitute.For <ISvnClient>();
     Settings      = new SvnVacuumSettings();
     DirectoryPath = new DirectoryPath(@"C:\test\");
     GetSvnClient  = () => SvnClient;
 }
Example #2
0
            public void Should_Not_Set_Include_Externals_By_Default()
            {
                // Given, When
                var settings = new SvnVacuumSettings();

                // Then
                Assert.False(settings.IncludeExternals);
            }
Example #3
0
 /// <inheritdoc/>
 public bool Vacuum(string directoryPath, SvnVacuumSettings settings)
 {
     return(Vacuum(directoryPath, settings.ToSvnVacuumArgs()));
 }
        public static bool SvnVacuum(this ICakeContext context, DirectoryPath directory, SvnVacuumSettings settings)
        {
            var vacuum = new SvnVacuum(context.Environment, SvnClientFactoryMethod);

            return(vacuum.Vacuum(directory, settings));
        }