Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Commit

Permalink
Move RepoRepairProvider out of the test file
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed May 30, 2012
1 parent 1e0dde9 commit 8301293
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
22 changes: 1 addition & 21 deletions RepoRepairTool.Tests/Helpers/RepoRepairProviderTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using System.Text;
using LibGit2Sharp;
using Newtonsoft.Json;
using Ninject;
using Ninject.MockingKernel.NSubstitute;
Expand Down Expand Up @@ -64,25 +62,7 @@ public void IntegrationFixturesShouldHaveACleanAnalysisReport(string repoName)
}

[Fact]
public void IgnoreNuGetPackagesDirectory()
{
throw new NotImplementedException();
}
}

[Flags]
public enum RepoRepairOptions {
IgnoreRemoteBranches = 0x1,
}

public interface IRepoRepairProvider : IEnableLogger
{
IObservable<Unit> RepairRepo(DisposableContainer<Repository> repo, RepoAnalysisResult analysis, RepoRepairOptions ignoreRemoteBranches);
}

public class RepoRepairProvider : IRepoRepairProvider
{
public IObservable<Unit> RepairRepo(DisposableContainer<Repository> repo, RepoAnalysisResult analysis, RepoRepairOptions ignoreRemoteBranches)
public void NuGetPackagesDirectoryShouldBeIgnored()
{
throw new NotImplementedException();
}
Expand Down
26 changes: 26 additions & 0 deletions RepoRepairTool/Helpers/RepoRepairProvider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Reactive;
using LibGit2Sharp;
using ReactiveUI;
using RepoRepairTool.ViewModels;

namespace RepoRepairTool.Helpers
{
[Flags]
public enum RepoRepairOptions {
IgnoreRemoteBranches = 0x1,
}

public interface IRepoRepairProvider : IEnableLogger
{
IObservable<Unit> RepairRepo(DisposableContainer<Repository> repo, RepoAnalysisResult analysis, RepoRepairOptions ignoreRemoteBranches);
}

public class RepoRepairProvider : IRepoRepairProvider
{
public IObservable<Unit> RepairRepo(DisposableContainer<Repository> repo, RepoAnalysisResult analysis, RepoRepairOptions ignoreRemoteBranches)
{
throw new NotImplementedException();
}
}
}
1 change: 1 addition & 0 deletions RepoRepairTool/RepoRepairTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
</ApplicationDefinition>
<Compile Include="Helpers\DisposableContainer.cs" />
<Compile Include="Helpers\FilesystemInfoExtensions.cs" />
<Compile Include="Helpers\RepoRepairProvider.cs" />
<Compile Include="Helpers\ShellDragDrop.cs" />
<Compile Include="ViewModels\AppBootstrapper.cs" />
<Compile Include="ViewModels\DropRepoViewModel.cs" />
Expand Down

0 comments on commit 8301293

Please sign in to comment.