//[Fact]
        public void ShouldGetBranches()
        {
            // Arrange
            var settingsMock = new Mock<ISettings>();
            settingsMock
                .SetupGet(p => p.Workspace)
                .Returns("C:\\git\\gsbd");

            var cleaningService = new BranchCleaningService(new Git(settingsMock.Object));

            // Act
            var branches = cleaningService.GetNonOficialBranches();

            // Assert
            Assert.NotNull(branches);
        }
Beispiel #2
0
        public CleanBranches(BranchCleaningService branchCleaningService)
        {
            _branchCleaningService = branchCleaningService;

            InitializeComponent();
        }