public async Task ActivityIntegrationTest() { const string CollectionUrl = @"http://*****:*****@"$/MattiasDemo2011/Main4", SourceControl = wrapper }; var context = new ActionExecutionContext(); await activity.ExecuteAsync(context); var checkin = new SccCheckIn { SourceControl = wrapper }; await checkin.ExecuteAsync(context); var branch = new SccCreateBranch { BranchSource = @"$/MattiasDemo2011/Main4", BranchTarget = @"$/MattiasDemo2011/Dev4", SourceControl = wrapper }; await branch.ExecuteAsync(context); var checkin2 = new SccCheckIn { SourceControl = wrapper }; await checkin2.ExecuteAsync(context); }
public async Task SccCreateFolderExecuteAsyncTest() { using (ShimsContext.Create()) { const string CollectionUrl = "http://FakeServer:8080/tfs/TestCollection"; ShimTfsTeamProjectCollection.ConstructorUri = (@this, value) => { // ReSharper disable ObjectCreationAsStatement new ShimTfsTeamProjectCollection(@this) { NameGet = () => CollectionUrl }; new ShimTfsConnection(@this) { EnsureAuthenticated = () => { } }; // ReSharper restore ObjectCreationAsStatement }; var activity = new SccCreateFolder { FolderPath = @"$\Main", SourceControl = new MockSourceControlWrapper() }; activity.SourceControl.CreateWorkspace(); await activity.ExecuteAsync(new ActionExecutionContext()); } }