public void CallsIntoClient() { var github = Substitute.For<IGitHubClient>(); var client = new ObservableMigrationsClient(github); client.DeleteArchive("fake", 69); github.Migration.Migrations.Received(1).DeleteArchive("fake", 69); }
public void CallsIntoClient() { var github = Substitute.For<IGitHubClient>(); var client = new ObservableMigrationsClient(github); var migrationRequest = new StartMigrationRequest( new List<string> { "fake/repo" }, true, false); client.Start("fake", migrationRequest); github.Migration.Migrations.Received(1).Start( "fake", Arg.Is<StartMigrationRequest>(m => m.Equals(migrationRequest))); }
public void CallsIntoClient() { var github = Substitute.For<IGitHubClient>(); var client = new ObservableMigrationsClient(github); client.UnlockRepository("fake", 69, "repo"); github.Migration.Migrations.Received(1).UnlockRepository("fake", 69, "repo"); }