public static AzureOperationResponse <IPage <EventData> > InitializeFinalResponse(int numRecords = 5)
        {
            List <EventData> eventData = Utilities.CreateListOfFakeEvents(numRecords);
            var x = JsonConvert.SerializeObject(eventData);

            x = string.Concat("{\"value\":", x, ",\"nextLink\":null}");

            return(new AzureOperationResponse <IPage <EventData> >()
            {
                Body = JsonConvert.DeserializeObject <Azure.Management.Monitor.Models.Page1 <EventData> >(x)
            });
        }
        public static AzureOperationResponse <IPage <EventData> > InitializeResponse(int numRecords = 10)
        {
            // 200 is the default page lenght of the backend, but these are tests -> using 10 as page length
            if (numRecords < 10)
            {
                return(InitializeFinalResponse(numRecords));
            }

            List <EventData> events = Utilities.CreateListOfFakeEvents(numRecords);
            var x = JsonConvert.SerializeObject(events);

            x = string.Concat("{", string.Format("\"value\":{0},\"nextLink\":\"{1}\"", x, Utilities.ContinuationToken), "}");

            return(new AzureOperationResponse <IPage <EventData> >()
            {
                Body = JsonConvert.DeserializeObject <Azure.Management.Monitor.Models.Page1 <EventData> >(x)
            });
        }