internal void Handle(ProblemsUpdateRequest request) { var resp = new ProblemsUpdateResponse(); if (MockupHelpers.IsActivated(request.DriverId)) { var rand = new Random(); var type = (rand.Next(2) == 0) ? GridProblemType.ChargeSpotProblem : GridProblemType.GridProblem; var isOK = (rand.Next(2) == 0); var pr = new GridProblemReport { Id = BplClass.CreateGuid<GridProblemReport>(), GridProblemType = type, Status = isOK ? ProblemStatus.Closed : ProblemStatus.New }; resp.ProblemReports.Add(pr); } Reply(resp); }
internal void Handle(ProblemsUpdateRequest request) { _handle(request); }