My DTO is declared like below
[MaxLength(maxFileSize, ErrorMessage = "Max Byte Array length is 40MB.")]
public byte[] DocumentFile { get; set; }
I need to write Unit Test method for File Size more than 40MB.
As the DocumentFile
property is declared as byte[] array type, I am unable to assign any value to DocumentFile
property.
Can anyone please suggest me how can I write unit test method for this scenario.