How do I mock AddAsync?
问题 I'm writing unit test. For testing the method below, public async Task<Guid> CreateWebJobStatus(string blobId, Guid loggedInUserId, string loggedInUserEmail) { Guid webJobStatusId = Guid.NewGuid(); WebJobStatus newWebJobStatus = new WebJobStatus { WorkJobStatusId = webJobStatusId, TransactionId = Guid.NewGuid(), Status = (int)WebJobStatusEnum.PENDING, BlobId = blobId, UserId = loggedInUserId, UserEmail = loggedInUserEmail, }; await _dbContext.WebJobStatus.AddAsync(newWebJobStatus); await