public async Task BlockCollectionCreation_ReturnsConflictResponse_GivenExistingId() { //Arrange Guid id = new Guid("03a6907d-4e93-4863-bdaf-1d05140dec12"); _mockCollectionService.Setup(c => c.CollectionExists(It.IsAny <Guid>())).ReturnsAsync(true); //Act var response = await _controller.BlockCollectionCreation(id) as StatusCodeResult; //Assert Assert.Equal(StatusCodes.Status409Conflict, response.StatusCode); _mockCollectionService.Verify(c => c.CollectionExists(id)); }