Ejemplo n.º 1
0
        public Task <CreatePolicyResultDto> CreatePolicyAsync(CreatePolicyRequestDto request, string agentLogin)
        {
            var index  = new Random().Next(0, Policies.Count);
            var result = new CreatePolicyResultDto {
                PolicyNumber = Policies?.ElementAtOrDefault(index)?.Number
            };

            return(Task.FromResult(result));
        }
Ejemplo n.º 2
0
 public Task <CreatePolicyResultDto> CreatePolicyAsync(CreatePolicyRequestDto request, string agentLogin = AppSettings.AgentLogin) =>
 _policyService.CreatePolicyAsync(request, agentLogin);