public void TestOnlineSpotlights()
        {
            List <APISpotlight> spotlights = null;

            AddStep("retrieve spotlights", () =>
            {
                var req      = new GetSpotlightsRequest();
                req.Success += res => spotlights = res.Spotlights;

                api.Perform(req);
            });

            AddStep("set spotlights", () =>
            {
                if (spotlights != null)
                {
                    selector.Spotlights = spotlights;
                }
            });
        }
Exemple #2
0
 private void getSpotlights()
 {
     spotlightsRequest          = new GetSpotlightsRequest();
     spotlightsRequest.Success += response => Schedule(() => selector.Spotlights = response.Spotlights);
     api.Queue(spotlightsRequest);
 }