public void CallsIntoClient() { var github = Substitute.For <IGitHubClient>(); var client = new ObservableMigrationsClient(github); client.GetAll("fake"); github.Received().Migration.Migrations.GetAll("fake", Args.ApiOptions); }
public void CallsIntoClientApiOptions() { var github = Substitute.For <IGitHubClient>(); var client = new ObservableMigrationsClient(github); var options = new ApiOptions { PageCount = 1, PageSize = 1 }; client.GetAll("fake", options); github.Received().Migration.Migrations.GetAll("fake", options); }