mockInvoice.VerifySet(x => x.InvoiceAttachmentId = 123, Times.Once());
Replace 123 with the expected value.
If you want to permit any value, use:
mockInvoice.VerifySet(x => x.InvoiceAttachmentId = It.IsAny<int>(),
Times.Once());
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…