Skip to content

Merge pull request #180 from lAnubisl/dependabot/nuget/Microsoft.Azur… #130

Merge pull request #180 from lAnubisl/dependabot/nuget/Microsoft.Azur…

Merge pull request #180 from lAnubisl/dependabot/nuget/Microsoft.Azur… #130

GitHub Actions / DotNET Tests succeeded Sep 27, 2024 in 0s

188 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
LostFilmMonitoring.BLL.Tests/TestResults/test-results.trx 81✅ 1s
LostFilmMonitoring.DAO.Azure.Tests/TestResults/test-results.trx 55✅ 1s
LostFilmTV.Client.Tests/TestResults/test-results.trx 52✅ 799ms

✅ LostFilmMonitoring.BLL.Tests/TestResults/test-results.trx

81 tests were completed in 1s with 81 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
LostFilmMonitoring.BLL.Tests.Commands.GetUserCommandTests 7✅ 99ms
LostFilmMonitoring.BLL.Tests.Commands.SaveSubscriptionCommandTests 11✅ 144ms
LostFilmMonitoring.BLL.Tests.Commands.SaveUserCommandTests 12✅ 16ms
LostFilmMonitoring.BLL.Tests.Commands.SignInCommandTests 7✅ 6ms
LostFilmMonitoring.BLL.Tests.Commands.UpdateFeedsCommandTests 18✅ 83ms
LostFilmMonitoring.BLL.Tests.ConfigurationTests 8✅ 36ms
LostFilmMonitoring.BLL.Tests.LoggerTests 8✅ 28ms
LostFilmMonitoring.BLL.Tests.Validation.EditSubscriptionRequestModelValidatorTests 10✅ 12ms

✅ LostFilmMonitoring.BLL.Tests.Commands.GetUserCommandTests

✅ Constructor_should_throw_exception_when_logger_createScope_null
✅ Constructor_should_throw_exception_when_logger_null
✅ Constructor_should_throw_exception_when_userDao_null
✅ ExecuteAsync_should_return_error_when_request_is_null
✅ ExecuteAsync_should_return_error_when_request_userId_is_null
✅ ExecuteAsync_should_return_error_when_user_not_found
✅ ExecuteAsync_should_return_success_when_user_found

✅ LostFilmMonitoring.BLL.Tests.Commands.SaveSubscriptionCommandTests

✅ Constructor_should_throw_exception_when_configuration_null
✅ Constructor_should_throw_exception_when_dal_null
✅ Constructor_should_throw_exception_when_logger_null
✅ Constructor_should_throw_exception_when_persister_null
✅ Constructor_should_throw_exception_when_validator_null
✅ ExecuteAsync_should_add_series_to_subscription
✅ ExecuteAsync_should_replace_series_quality
✅ ExecuteAsync_should_return_error_when_request_is_null
✅ ExecuteAsync_should_return_error_when_request_items_is_null
✅ ExecuteAsync_should_return_error_when_request_userId_is_null
✅ ExecuteAsync_should_return_error_when_validator_returned_validation_error

✅ LostFilmMonitoring.BLL.Tests.Commands.SaveUserCommandTests

✅ Constructor_should_throw_exception_when_feedDao_null
✅ Constructor_should_throw_exception_when_logger_createScope_null
✅ Constructor_should_throw_exception_when_logger_null
✅ Constructor_should_throw_exception_when_persister_null
✅ Constructor_should_throw_exception_when_userDao_null
✅ ExecuteAsync_should_generate_userId_for_new_user
✅ ExecuteAsync_should_return_error_when_request_is_null
✅ ExecuteAsync_should_return_error_when_request_trackerId_is_null
✅ ExecuteAsync_should_trigger_feedDAO_saveUserFeedAsync
✅ ExecuteAsync_should_trigger_persister_persistAsync
✅ ExecuteAsync_should_trigger_userDao_saveAsync
✅ ExecuteAsync_should_update_existing_user

✅ LostFilmMonitoring.BLL.Tests.Commands.SignInCommandTests

✅ Constructor_should_throw_exception_when_logger_createScope_null
✅ Constructor_should_throw_exception_when_logger_null
✅ Constructor_should_throw_exception_when_userDao_null
✅ ExecuteAsync_should_return_success_false_when_request_is_null
✅ ExecuteAsync_should_return_success_false_when_request_userId_is_null
✅ ExecuteAsync_should_return_success_false_when_user_not_found
✅ ExecuteAsync_should_return_success_true_when_user_found

✅ LostFilmMonitoring.BLL.Tests.Commands.UpdateFeedsCommandTests

✅ Constructor_should_throw_exception_when_configuration_null
✅ Constructor_should_throw_exception_when_dal_null
✅ Constructor_should_throw_exception_when_logger_null
✅ Constructor_should_throw_exception_when_lostfilmclient_null
✅ Constructor_should_throw_exception_when_persister_null
✅ Constructor_should_throw_exception_when_rssFeed_null
✅ ExecuteAsync_should_cleanup_old_torrent_files
✅ ExecuteAsync_should_not_add_series_when_torrent_download_failed
✅ ExecuteAsync_should_not_do_anything_if_no_items
✅ ExecuteAsync_should_not_do_anything_if_no_updates
✅ ExecuteAsync_should_not_fail_on_cleanup_when_deletion_failed
✅ ExecuteAsync_should_not_fail_on_cleanup_when_file_name_not_parsed
✅ ExecuteAsync_should_not_skip_missing_episodes
✅ ExecuteAsync_should_not_update_feed_when_series_not_updated
✅ ExecuteAsync_should_not_update_feed_when_user_not_found
✅ ExecuteAsync_should_save_new_series
✅ ExecuteAsync_should_update_existing_series
✅ ExecuteAsync_should_update_user_feed

✅ LostFilmMonitoring.BLL.Tests.ConfigurationTests

✅ AllProperties_should_return_values
✅ Constructor_should_fail_when_BASEFEEDCOOKIEL_not_set
✅ Constructor_should_fail_when_BASELINKUID_not_set
✅ Constructor_should_fail_when_BASEURL_not_set
✅ Constructor_should_fail_when_TORRENTTRACKERS_not_set
✅ GetTorrentAnnounceList_should_have_default_value
✅ ImagesDirectory_should_have_default_value
✅ TorrentsDirectory_should_have_default_value

✅ LostFilmMonitoring.BLL.Tests.LoggerTests

✅ Constructor_should_throw_exception_when_logger_null
✅ Debug_should_call_logger
✅ Error_should_call_logger
✅ Fatal_should_call_logger
✅ Info_should_call_logger
✅ Log_should_call_logger_with_exception_details
✅ Log_should_call_logger_with_message_and_exception_details
✅ Warning_should_call_logger

✅ LostFilmMonitoring.BLL.Tests.Validation.EditSubscriptionRequestModelValidatorTests

✅ Constructor_should_throw_exception_when_seriesDAO_null
✅ Constructor_should_throw_exception_when_userDao_null
✅ ValidateAsync_should_return_fail_when_item_quality_is_null
✅ ValidateAsync_should_return_fail_when_item_seriesName_is_invalid
✅ ValidateAsync_should_return_fail_when_item_seriesName_is_null
✅ ValidateAsync_should_return_fail_when_item_userId_is_invalid
✅ ValidateAsync_should_return_fail_when_items_is_null
✅ ValidateAsync_should_return_fail_when_model_is_null
✅ ValidateAsync_should_return_fail_when_userId_is_null
✅ ValidateAsync_should_return_success

✅ LostFilmMonitoring.DAO.Azure.Tests/TestResults/test-results.trx

55 tests were completed in 1s with 55 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageClientTests 19✅ 319ms
LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageFeedDAOTests 2✅ 19ms
LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageFileSystemTests 2✅ 5ms
LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageModelPersisterTests 1✅ 37ms
LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageTorrentFileDaoTests 5✅ 12ms
LostFilmMonitoring.DAO.Azure.Tests.AzureTableStorageEpisodeDaoTests 3✅ 74ms
LostFilmMonitoring.DAO.Azure.Tests.AzureTableStorageSeriesDaoTests 8✅ 22ms
LostFilmMonitoring.DAO.Azure.Tests.AzureTableStorageSubscriptionDaoTests 10✅ 28ms
LostFilmMonitoring.DAO.Azure.Tests.AzureTableStorageUserDaoTests 5✅ 16ms

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageClientTests

✅ DeleteAsync_should_delete_file
✅ DeleteAsync_should_delete_file_2
✅ DeleteAsync_should_not_fail_when_blob_not_found
✅ DeleteAsync_should_throw_ExternalServiceUnavailableException_when_anything_unexpected
✅ DownloadAsync_should_download_stream
✅ DownloadAsync_should_download_stream_2
✅ DownloadAsync_should_return_null_when_blob_not_found
✅ DownloadAsync_should_return_null_when_blob_not_found_2
✅ DownloadAsync_should_return_throw_when_unexpected_error
✅ DownloadStringAsync_should_return_null_when_blob_not_found
✅ DownloadStringAsync_should_return_string
✅ ExistsAsync_should_check_if_file_exists
✅ ExistsAsync_should_throw_ExternalServiceUnavailableException_when_anything_unexpected
✅ SetCacheControlAsync_should_set_cache_control
✅ SetCacheControlAsync_should_throw_ExternalServiceUnavailableException_when_anything_unexpected
✅ UploadAsync_should_throw_exception_when_stream_null
✅ UploadAsync_should_upload
✅ UploadAsync_should_upload_2
✅ UploadAsync_should_upload_3

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageFeedDAOTests

✅ DeleteAsync_should_call_azureBlobStorageClient_deleteAsync
✅ LoadBaseFeedAsync_should_call_azureBlobStorageClient_downloadStringAsync

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageFileSystemTests

✅ ExistsAsync_should_call_IAzureBlobStorageClient
✅ SaveAsync_should_call_IAzureBlobStorageClient

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageModelPersisterTests

✅ LoadAsync_should_deserialize_json_file

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureBlobStorageTorrentFileDaoTests

✅ DeleteUserFileAsync_should_call_DeleteAsync
✅ LoadBaseFileAsync_should_return_null
✅ LoadBaseFileAsync_should_return_TorrentFile
✅ SaveBaseFileAsync_should_call_UploadAsync
✅ SaveUserFileAsync_should_call_UploadAsync

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureTableStorageEpisodeDaoTests

✅ ExistsAsync_should_check_if_episode_exists
✅ SaveAsync_should_save_episode
✅ SaveAsync_throw_ExternalServiceUnavailableException

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureTableStorageSeriesDaoTests

✅ DeleteAsync_should_delete_series
✅ DeleteAsync_should_do_nothing_when_series_null
✅ DeleteAsync_should_escape_key_when_delete_series
✅ LoadAsync_name_should_return_null_when_series_not_found
✅ LoadAsync_name_should_return_series
✅ SaveAsync_should_save_series
✅ TaskAsync_should_return_empty_array
✅ TaskAsync_should_return_records

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureTableStorageSubscriptionDaoTests

✅ LoadAsync_should_return_array_when_userId_found
✅ LoadAsync_should_return_empty_array_when_user_not_found
✅ LoadAsync_should_return_empty_array_when_userId_empty
✅ LoadAsync_should_return_empty_array_when_userId_not_found
✅ LoadAsync_should_return_empty_array_when_userId_null
✅ LoadUsersIdsAsync_should_return_empty_array_when_seriesName_empty
✅ LoadUsersIdsAsync_should_return_empty_array_when_subscription_not_found
✅ LoadUsersIdsAsync_should_return_empty_array_when_userId_empty
✅ LoadUsersIdsAsync_should_return_userIds
✅ SaveAsync_should_delete_old_subscriptions_and_save_new_subscriptions

✅ LostFilmMonitoring.DAO.Azure.Tests.AzureTableStorageUserDaoTests

✅ LoadAsync_should_return_empty_array_when_no_users
✅ LoadAsync_should_return_null_when_user_not_found
✅ LoadAsync_should_return_user
✅ LoadAsync_should_return_users
✅ SaveAsync_should_save_user

✅ LostFilmTV.Client.Tests/TestResults/test-results.trx

52 tests were completed in 799ms with 52 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
LostFilmTV.Client.Tests.FeedItemResponseTests 29✅ 30ms
LostFilmTV.Client.Tests.LostFilmClientTests 9✅ 153ms
LostFilmTV.Client.Tests.RssFeed.LostFilmRssFeedTests 5✅ 20ms
LostFilmTV.Client.Tests.RssFeed.ReteOrgRssFeedTests 9✅ 16ms

✅ LostFilmTV.Client.Tests.FeedItemResponseTests

✅ FeedItemResponse_constructor_from_XElement
✅ FeedItemResponse_GetEpisodeName_should_return_name("",null)
✅ FeedItemResponse_GetEpisodeName_should_return_name("Внешние сферы (Outer Range) Неведомое (S01E07) (MP4)",null)
✅ FeedItemResponse_GetEpisodeName_should_return_name(null,null)
✅ FeedItemResponse_GetEpisodeName_should_return_name(valid)
✅ FeedItemResponse_GetQuality_should_return_quality("",null)
✅ FeedItemResponse_GetQuality_should_return_quality(invalid (MP4))
✅ FeedItemResponse_GetQuality_should_return_quality(invalid (MP4]
✅ FeedItemResponse_GetQuality_should_return_quality(invalid [MP4))
✅ FeedItemResponse_GetQuality_should_return_quality(invalid ]MP4[)
✅ FeedItemResponse_GetQuality_should_return_quality(null,null)
✅ FeedItemResponse_GetQuality_should_return_quality(valid 1080)
✅ FeedItemResponse_GetQuality_should_return_quality(valid MP4)
✅ FeedItemResponse_GetQuality_should_return_quality(valid SD)
✅ FeedItemResponse_GetSeriesName_should_return_name(empty string)
✅ FeedItemResponse_GetSeriesName_should_return_name(invalid)
✅ FeedItemResponse_GetSeriesName_should_return_name(null)
✅ FeedItemResponse_GetSeriesName_should_return_name(valid)
✅ FeedItemResponse_GetTorrentId_should_return_id("",null)
✅ FeedItemResponse_GetTorrentId_should_return_id("http://tracktor.in/rssdownloader.php?id=33572","33572")
✅ FeedItemResponse_GetTorrentId_should_return_id("http://tracktor.in/test.php?id=33572",null)
✅ FeedItemResponse_GetTorrentId_should_return_id(null,null)
✅ FeedItemResponse_HasUpdates_should_return_false_for_identical_lists
✅ FeedItemResponse_HasUpdates_should_return_true_for_different_lists
✅ FeedItemResponse_HasUpdates_should_return_true_for_lists_of_different_length
✅ FeedItemResponse_HasUpdates_should_throw_exception_if_newItems_null
✅ FeedItemResponse_HasUpdates_should_throw_exception_if_oldItems_null
✅ FeedItemResponse_should_be_sortable
✅ FeedItemResponse_ToString_should_return_string

✅ LostFilmTV.Client.Tests.LostFilmClientTests

✅ Constructor_should_throw_exception_when_httpClientFactory_null
✅ Constructor_should_throw_exception_when_logger_createScope_null
✅ Constructor_should_throw_exception_when_logger_null
✅ DownloadImageAsync_should_download_image
✅ DownloadImageAsync_should_not_fail
✅ DownloadTorrentFileAsync_should_not_fail
✅ DownloadTorrentFileAsync_should_return_null_when_content_desposition_not_set
✅ DownloadTorrentFileAsync_should_return_null_when_contentType_not_expected
✅ DownloadTorrentFileAsync_should_return_null_when_contentType_not_set

✅ LostFilmTV.Client.Tests.RssFeed.LostFilmRssFeedTests

✅ Constructor_should_throw_exception_when_httpClientFactory_null
✅ Constructor_should_throw_exception_when_logger_createScope_null
✅ Constructor_should_throw_exception_when_logger_null
✅ LoadFeedItemsAsync_should_return_empty_when_content_is_empty
✅ LoadFeedItemsAsync_should_return_items

✅ LostFilmTV.Client.Tests.RssFeed.ReteOrgRssFeedTests

✅ Constructor_should_throw_exception_when_httpClientFactory_null
✅ Constructor_should_throw_exception_when_logger_createScope_null
✅ Constructor_should_throw_exception_when_logger_null
✅ LoadFeedItemsAsync_should_return_empty_when_content_is_empty
✅ LoadFeedItemsAsync_should_return_empty_when_Exception
✅ LoadFeedItemsAsync_should_return_empty_when_IOException
✅ LoadFeedItemsAsync_should_return_empty_when_rss_broken
✅ LoadFeedItemsAsync_should_return_empty_when_TaskCanceledException
✅ LoadFeedItemsAsync_should_return_items