private FakeChange(TfsChangeType tfsChangeType, TfsItemType itemType, string serverItem, int deletionId = 0, string renamedFrom = null) { _tfsChangeType = tfsChangeType; _tfsItemType = itemType; _serverItem = serverItem; _deletionId = deletionId; _renamedFrom = renamedFrom; _itemId = ++_maxItemId; }
public FakeChangesetBuilder Change(TfsChangeType changeType, TfsItemType itemType, string tfsPath, string contents = null) { _changeset.Changes.Add(new ScriptedChange { ChangeType = changeType, ItemType = itemType, RepositoryPath = tfsPath, Content = contents }); return(this); }
public FakeChangesetBuilder Change(TfsChangeType changeType, TfsItemType itemType, string tfsPath, string contents, int?itemId = null) { return(Change(changeType, itemType, tfsPath, Encoding.UTF8.GetBytes(contents), itemId)); }
private TfsTreeEntry item(TfsItemType itemType, string gitPath) { return(new TfsTreeEntry(gitPath, mocks.StrictMock <IItem>().Tap(mockItem => mockItem.Stub(x => x.ItemType).Return(itemType)))); }
private TfsTreeEntry item(TfsItemType itemType, string gitPath) { return new TfsTreeEntry(gitPath, mocks.StrictMock<IItem>().Tap(mockItem => mockItem.Stub(x => x.ItemType).Return(itemType))); }
private TfsTreeEntry item(TfsItemType itemType, string gitPath) { return(new TfsTreeEntry(gitPath, mocks.OneOf <IItem>().Tap(mockItem => Mock.Get(mockItem).Setup(x => x.ItemType).Returns(itemType)))); }
public FakeChangesetBuilder Change(TfsChangeType changeType, TfsItemType itemType, string tfsPath, string contents = null) { _changeset.Changes.Add(new ScriptedChange { ChangeType = changeType, ItemType = itemType, RepositoryPath = tfsPath, Content = contents }); return this; }