Пример #1
0
        public async void ReturnPremiumEndorsementUnitTest()
        {
            ReturnPremiumEndorsementCommand returnPreminumEndorsementArgs = new ReturnPremiumEndorsementCommand()
            {
                InsuredId        = "DEMOACCOUNT",
                InsuredName1     = "JOHN",
                AisAccountNumber = "98000001",
                Note1            = "SAMPLE NOTE 01",
                Note2            = "SAMPLE NOTE 02"
            };

            returnPreminumEndorsementArgs.Policies = new List <ReturnPreminumEndorsement_policy>()
            {
                new ReturnPreminumEndorsement_policy()
                {
                    PolicyNumber = "TESTPFPOLICY0001",
                    PolicyReturnPremiumAmount = "1000.00"
                }
            };

            AISClient aISClient = new AISClient("http://localhost:53713");
            var       result    = await aISClient.ReturnPremiumEndorsementAsync(returnPreminumEndorsementArgs);

            Assert.NotNull(result);
        }
Пример #2
0
 public async Task <ReturnPreminumEndorsement_result> ReturnPremiumEndorsement([FromBody] ReturnPremiumEndorsementCommand returnPremiumEndorsementCommand)
 {
     return(await mediator.Send(returnPremiumEndorsementCommand));
 }