如果需要,我有一个创建队列的方法。如果队列已经存在,则该方法返回false;如果创建成功,则返回true。QueueCreation_MessagingEntityAlreadyExistsException_IsCatched() // Given
var managementClientMock = new MockQueueDescription>(), It.IsAny<System.Threading.CancellationToken&
我正在尝试使用Moq来模拟将元素添加到存储库,然后检查已插入的元素的数量,但它总是给我0个元素,我的代码中出现了一些错误,您能帮助我吗?var candidate = new Candidate { Id = Guid.NewGuid()};
var repo = new Mock<ICandidateRepository