You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decides, will nullable (optional) value be available or no, and if yes, returns this value.
Intended to be used when generating the properties for the class / structure.
The decision will depend mainly on specified nullable property decision strategy:
Enumeration element
Description
mustGenerateAll
If target nullable property has not been predefined via NullablePropertiesDecisionStrategies.PreDefinedValue, it will be generated by specified RandomValueGenerator. It means the RandomValueGenerator must be specified for this strategy, otherwise ArgumentException will be thrown.
If target nullable property has been predefined via NullablePropertiesDecisionStrategies.PreDefinedValue, this value will be returned otherwise will be generated by specified RandomValueGenerator with probability 50%. It means the RandomValueGenerator must be specified for this strategy, otherwise ArgumentException will be thrown.
mustSkipIfHasNotBeenPreDefined
If target nullable property has not been predefined via NullablePropertiesDecisionStrategies.PreDefinedValue, no random value will be generated. Only for the strategy RandomValueGenerator should be omitted.
Errors classes
Error class
Usage
DataRetrievingFailedException
Intended to be used when the data retrieving from some external resource (server, database, file, etc.) failed.
DataSubmittingFailedException
Intended to be used when the data submitting to any external resource (server, database, etc.) failed.
If you want to see the loading placeholder for a while, increase this value.
MaximalPendingPeriod__Seconds
Type
ushort
Default value
2
Use case
If you want to see the loading placeholder for a while, increase this value.
MustSimulateError
Type
bool
Default value
false
Use case
If you want to check is the error message displays correctly in your GUI, set this flag to true.
MustSimulateError
Type
bool
Is required
Yes
MustLogResponseData
Type
bool
Is required
Yes
Note
System.Text.Json.JsonSerializer will be used for serializing.
GatewayName
Type
bool
Is required
Yes
Note
Used for logging only. "Gateway" could be called "service" or somehow else in your code.
TransactionName
Type
bool
Is required
Yes
Note
Used for logging only.
About
The library for the C Sharp language extending the standard classes such as "String" and "List" and also suggesting the additional auxiliary functionality