public async Task ValidateCustomerWhenCustomerhasNullSurname_ReturnsFalse()
        {
            AfiCustomer customer = _fixture.Create <AfiCustomer>();

            customer.SurName = null;

            var result = await _validationService.ValidateCustomerEntity(customer);

            Assert.False(result);
        }
 public async Task <int> RegisterCustomer([FromBody] AfiCustomer customer)
 {
     if (await _afiCustomerValidationService.ValidateCustomerEntity(customer))
     {
         return(await _afiCustomerService.RegisterAfiCustomer(customer));
     }
     else
     {
         //Invalid Condition returns -1
         return(await Task.FromResult(-1));
     }
 }