public void CorrectRequestForGetAll() { var factory = Substitute.For <IConnection>(); var client = new SnapshotsClient(factory); client.GetAll(); factory.Received().GetPaginated <Snapshot>("snapshots", null, "snapshots"); client.GetAll(SnapshotType.Droplet); factory.Received().GetPaginated <Snapshot>("snapshots?resource_type=droplet", null, "snapshots"); client.GetAll(SnapshotType.Volume); factory.Received().GetPaginated <Snapshot>("snapshots?resource_type=volume", null, "snapshots"); }