Example #1
0
        public async void PolicyCancellationUnitTest()
        {
            PolicyCancellationCommand policyCancellationArgs = new PolicyCancellationCommand()
            {
                InsuredId               = "DEMOACCOUNT",
                AisAccountNumber        = "98000001",
                Note1                   = "SAMPLE NOTE 01",
                Note2                   = "SAMPLE NOTE 02",
                AgentCode               = "040000",
                AgentCodeCrossReference = " ",
                CancellationDate        = "10012018",
                CancellationType        = "P",
                RequestedBy             = "I",
                Policies                = new List <PolicyCancellation_policy>()
                {
                    new PolicyCancellation_policy()
                    {
                        PolicyNumber = "TESTPFPOLICY0001"
                    }
                }
            };
            AISClient aISClient = new AISClient("http://localhost:53713");
            var       resut     = await aISClient.PolicyCancellationAsync(policyCancellationArgs);

            Assert.NotNull(resut);
        }
Example #2
0
 public async Task <PolicyCancellation_result> PolicyCancellation([FromBody] PolicyCancellationCommand policyCancellationCommand)
 {
     return(await mediator.Send(policyCancellationCommand));
 }