public static ITest GetCurrentTest(int id) { var random = new Random(id); int index = Indexes_distribution[random.Next(0, Indexes_count)]; Request request = Request.CopyRequest(Requests[index]); request = TransformFactory.PerformTransformations(request); if (request.Type == RequestType.Get) { return(new Get(request)); } else { return(new Post(request)); } }