public async void TestDeleteAlbumAsync() { // 2. Act: Run the SUT (Software Under Test - the actual testing code) var response = await _controller.DeleteAlbumAsync(Guid.Parse("0f078d0e-6602-4375-a088-ab8d00facdd1")); // 3. Assert: Check and verify the result. bool?IsValid = (int)response.GetType().GetProperty("StatusCode").GetValue(response, null) == 200; Assert.True(IsValid); IsValid = (bool)response.GetType().GetProperty("Value").GetValue(response); Assert.True(IsValid); }
public async void TestDeleteAlbumAsync() { var response = await _albumsController.DeleteAlbumAsync(Guid.Parse("0f078d0e-6602-4375-a088-ab8d00facdd1")); Assert.True(response); }