public override void Setup()
 {
     base.Setup();
     fixture = new Fixture();
     repositorySubstitute = Substitute.For<IRepository>();
     gitFacadeSubstitute = Substitute.For<IGitFacade>();
     gitFacadeSubstitute.NewRepository(Arg.Any<string>()).Returns(repositorySubstitute);
 }
 public override void Setup()
 {
     base.Setup();
     fixture = new Fixture();
     repositorySubstitute = Substitute.For <IRepository>();
     gitFacadeSubstitute  = Substitute.For <IGitFacade>();
     gitFacadeSubstitute.NewRepository(Arg.Any <string>()).Returns(repositorySubstitute);
 }
        public void Execute()
        {
            var repository = gitFacade.NewRepository(context.Parameters.LocalWorkspacePath);

            if (repository.Exists())
            {
                context.Logger.LogInfo("Existing git repository found, no repository will be created");
                return;
            }

            context.Logger.LogInfo(Progress.Halfway, "Initializing Git repository...");
            repository.Initialize();

            context.Logger.LogInfo(Progress.AlmostDone, "Configuring Git repository...");
            repository.Configure(ExporterUserName, exporterEmail);
        }