Permalink
Browse files

Fixed namespaces.

  • Loading branch information...
Matt Burke
Matt Burke committed Jun 21, 2010
1 parent bb27017 commit 0cd569df603d4ff2175164b35a143e68a260dd3b
Showing with 100 additions and 98 deletions.
  1. +95 −95 GitTfs.Vs2008/TfsApiBridge.cs
  2. +5 −3 GitTfs.Vs2008/TfsHelper.cs
@@ -1,95 +1,95 @@
-using Microsoft.TeamFoundation.Server;
-using Microsoft.TeamFoundation.VersionControl.Client;
-using Sep.Git.Tfs.Vs2008;
-using ChangeType=Microsoft.TeamFoundation.VersionControl.Client.ChangeType;
-
-namespace Sep.Git.Tfs.Core.TfsInterop
-{
- public class TfsApiBridge
- {
- public IChangeset Wrap(Changeset changeset)
- {
- return new WrapperForChangeset(this, changeset);
- }
-
- public IChange Wrap(Change change)
- {
- return new WrapperForChange(this, change);
- }
-
- public IItem Wrap(Item item)
- {
- return new WrapperForItem(this, item);
- }
-
- public IIdentity Wrap(Identity identity)
- {
- return identity == null ? (IIdentity)new NullIdentity() : new WrapperForIdentity(identity);
- }
-
- public IWorkspace Wrap(Workspace workspace)
- {
- return new WrapperForWorkspace(this, workspace);
- }
-
- public Workspace Unwrap(IWorkspace workspace)
- {
- return WrapperFor<Workspace>.Unwrap(workspace);
- }
-
- public IShelveset Wrap(Shelveset shelveset)
- {
- return new WrapperForShelveset(this, shelveset);
- }
-
- public Shelveset Unwrap(IShelveset shelveset)
- {
- return WrapperFor<Shelveset>.Unwrap(shelveset);
- }
-
- public IPendingChange Wrap(PendingChange pendingChange)
- {
- return new WrapperForPendingChange(pendingChange);
- }
-
- public PendingChange Unwrap(IPendingChange pendingChange)
- {
- return WrapperFor<PendingChange>.Unwrap(pendingChange);
- }
-
- public IWorkItemCheckinInfo Wrap(WorkItemCheckinInfo workItemCheckinInfo)
- {
- return new WrapperForWorkItemCheckinInfo(workItemCheckinInfo);
- }
-
- public IVersionControlServer Wrap(VersionControlServer versionControlServer)
- {
- return new WrapperForVersionControlServer(this, versionControlServer);
- }
-
- public WorkItemCheckinInfo Unwrap(IWorkItemCheckinInfo info)
- {
- return WrapperFor<WorkItemCheckinInfo>.Unwrap(info);
- }
-
- public TfsChangeType Convert(ChangeType type)
- {
- return (TfsChangeType) (int) type;
- }
-
- public TfsItemType Convert(ItemType type)
- {
- return (TfsItemType) (int) type;
- }
-
- public WorkItemCheckinAction Convert(TfsWorkItemCheckinAction action)
- {
- return (WorkItemCheckinAction) (int) action;
- }
-
- public ShelvingOptions Convert(TfsShelvingOptions options)
- {
- return (ShelvingOptions) (int) options;
- }
- }
-}
+using Microsoft.TeamFoundation.Server;
+using Microsoft.TeamFoundation.VersionControl.Client;
+using Sep.Git.Tfs.Core.TfsInterop;
+using ChangeType=Microsoft.TeamFoundation.VersionControl.Client.ChangeType;
+
+namespace Sep.Git.Tfs.Vs2008
+{
+ public class TfsApiBridge
+ {
+ public IChangeset Wrap(Changeset changeset)
+ {
+ return new WrapperForChangeset(this, changeset);
+ }
+
+ public IChange Wrap(Change change)
+ {
+ return new WrapperForChange(this, change);
+ }
+
+ public IItem Wrap(Item item)
+ {
+ return new WrapperForItem(this, item);
+ }
+
+ public IIdentity Wrap(Identity identity)
+ {
+ return identity == null ? (IIdentity)new NullIdentity() : new WrapperForIdentity(identity);
+ }
+
+ public IWorkspace Wrap(Workspace workspace)
+ {
+ return new WrapperForWorkspace(this, workspace);
+ }
+
+ public Workspace Unwrap(IWorkspace workspace)
+ {
+ return WrapperFor<Workspace>.Unwrap(workspace);
+ }
+
+ public IShelveset Wrap(Shelveset shelveset)
+ {
+ return new WrapperForShelveset(this, shelveset);
+ }
+
+ public Shelveset Unwrap(IShelveset shelveset)
+ {
+ return WrapperFor<Shelveset>.Unwrap(shelveset);
+ }
+
+ public IPendingChange Wrap(PendingChange pendingChange)
+ {
+ return new WrapperForPendingChange(pendingChange);
+ }
+
+ public PendingChange Unwrap(IPendingChange pendingChange)
+ {
+ return WrapperFor<PendingChange>.Unwrap(pendingChange);
+ }
+
+ public IWorkItemCheckinInfo Wrap(WorkItemCheckinInfo workItemCheckinInfo)
+ {
+ return new WrapperForWorkItemCheckinInfo(workItemCheckinInfo);
+ }
+
+ public IVersionControlServer Wrap(VersionControlServer versionControlServer)
+ {
+ return new WrapperForVersionControlServer(this, versionControlServer);
+ }
+
+ public WorkItemCheckinInfo Unwrap(IWorkItemCheckinInfo info)
+ {
+ return WrapperFor<WorkItemCheckinInfo>.Unwrap(info);
+ }
+
+ public TfsChangeType Convert(ChangeType type)
+ {
+ return (TfsChangeType) (int) type;
+ }
+
+ public TfsItemType Convert(ItemType type)
+ {
+ return (TfsItemType) (int) type;
+ }
+
+ public WorkItemCheckinAction Convert(TfsWorkItemCheckinAction action)
+ {
+ return (WorkItemCheckinAction) (int) action;
+ }
+
+ public ShelvingOptions Convert(TfsShelvingOptions options)
+ {
+ return (ShelvingOptions) (int) options;
+ }
+ }
+}
@@ -9,10 +9,12 @@
using Microsoft.TeamFoundation.VersionControl.Client;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
using SEP.Extensions;
+using Sep.Git.Tfs.Core;
+using Sep.Git.Tfs.Core.TfsInterop;
using StructureMap;
-namespace Sep.Git.Tfs.Core.TfsInterop
-{
+namespace Sep.Git.Tfs.Vs2008
+{
public class TfsHelper : ITfsHelper
{
private readonly TextWriter _stdout;
@@ -175,5 +177,5 @@ private WorkItemCheckinInfo GetWorkItemInfo(string workItem, WorkItemCheckinActi
{
return new WorkItemCheckinInfo(WorkItems.GetWorkItem(Convert.ToInt32(workItem)), checkinAction);
}
- }
+ }
}

0 comments on commit 0cd569d

Please sign in to comment.