public async Task DeleteLibraryAsset_ValidAsset_ReturnsNoContent() { // Arrange var asset = GetAsset(); var mock = new Mock <ILibraryAssetService>(); mock.Setup(x => x.DeleteAsset(asset.Id)); var controller = new CatalogController(mock.Object, _logger, _mapper); // Act var result = await controller.DeleteLibraryAsset(asset.Id); // Assert Assert.IsType <NoContentResult>(result); }