Example #1
0
        public async void PolicyReinstatementUnitTest()
        {
            PolicyReinstatementCommand policyReinStatementArgs = new PolicyReinstatementCommand()
            {
                InsuredId               = "DEMOACCOUNT",
                AisAccountNumber        = "98000001",
                Note1                   = "SAMPLE NOTE 01",
                Note2                   = "SAMPLE NOTE 02",
                AgentCode               = "040000",
                ReinstateDate           = "10012018",
                AgentCodeCrossReference = " ",
                ReinstateType           = "P",
                RequestedBy             = "I",
                Policies                = new List <PolicyReinStatement_policy>()
                {
                    new PolicyReinStatement_policy()
                    {
                        PolicyNumber = "TESTPFPOLICY0001"
                    }
                }
            };

            AISClient aISClient = new AISClient("http://localhost:53713");
            var       resut     = await aISClient.PolicyReinstatementAsync(policyReinStatementArgs);

            Assert.NotNull(resut);
        }
Example #2
0
 public async Task <PolicyReinStatement_result> PolicyReinstatement([FromBody] PolicyReinstatementCommand policyReinstatementCommand)
 {
     return(await mediator.Send(policyReinstatementCommand));
 }