Hi, I have problem with the way how you implemented some of your constructors. Classes that I found for now with that implementation are SmsTextualMessage and SmsAdvancedTextualRequest.
Both have all parameters as optional, but in implementation of constructor there is check if some parameters are null.
For example:
var smsRequest = new SmsAdvancedTextualRequest()
{
Messages = [smsMessages]
};
will built without any error, but during execution exception will be thrown because of:
Hi, I have problem with the way how you implemented some of your constructors. Classes that I found for now with that implementation are
SmsTextualMessage
andSmsAdvancedTextualRequest
.Both have all parameters as optional, but in implementation of constructor there is check if some parameters are null. For example:
will built without any error, but during execution exception will be thrown because of:
I would expect build time error for this case