C# Class Microsoft.WindowsAzure.MediaServices.Client.Tests.AssetTests

Mostra file Open project: Azure/azure-sdk-for-media-services Class Usage Examples

Public Methods

Method Description
CompareFiles ( string fileName1, string fileName2 ) : bool
CreateAsset ( CloudMediaContext datacontext, string filePath, AssetCreationOptions options, bool isSetPrimary = true ) : IAsset
CreateAssetAndUploadNFilesSync ( int expected, CloudMediaContext mediaContext, string sourceFileName ) : void
CreateAssetAndUploadNFilesUsingAsyncCall ( int expected, CloudMediaContext mediaContext, string sourceFileName ) : IAsset
CreateNewFileFromOriginal ( DirectoryInfo info, string sourceFileName, string &fileName ) : string
VerifyAsset ( IAsset asset ) : void

Private Methods

Method Description
AssetTests_OnDownloadProgress ( object sender, DownloadProgressChangedEventArgs e ) : void
CompareStreams ( Stream stream1, Stream stream2 ) : bool
CreateAssetAndUpload4FilesUsingSyncCall ( ) : void
CreateAssetWithUniqueAlternateIdAndFilterByIt ( ) : void
GetHashValueForFileMd5CheckSum ( string filepath ) : string
GetHashValueForStreamMd5CheckSum ( Stream stream ) : string
GetHashValueMd5Checksum ( byte input ) : string
RefreshedAsset ( IAsset asset ) : IAsset
RunJobAndGetOutPutAsset ( string jobName, IAsset &asset, IJob &job ) : IAsset
SetupTest ( ) : void
ShouldCreateAssetAndCreate100FilesUsingAsyncCall ( ) : void
ShouldCreateAssetAndUpload10FilesUsingAsyncCall ( ) : void
ShouldCreateAssetAndUpload10FilesUsingSyncCall ( ) : void
ShouldCreateAssetAndUpload4FilesUsingAsyncCall ( ) : void
ShouldCreateAssetAndUploadAndDownload10FilesUsingAsyncCall ( ) : void
ShouldCreateAssetAsyncWithMultipleFiles ( ) : void
ShouldCreateAssetFile ( ) : void
ShouldCreateAssetFileFromBigStream ( ) : void
ShouldCreateAssetFileFromEmptyStream ( ) : void
ShouldCreateAssetFileFromNetworkStream ( ) : void
ShouldCreateAssetFileFromSmallStream ( ) : void
ShouldCreateAssetFileInfoWithoutUploadingFile ( ) : void
ShouldCreateAssetWithSingleFile ( ) : void
ShouldCreateEmptyAssetUploadTwoFilesSetPrimaryAndDownloadFile ( ) : void
ShouldCreateEmptyNoneEncryptedAssetUploadFileAndDownloadIt ( ) : void
ShouldCreateEncryptedInitilizedAsset ( ) : void
ShouldCreateEncryptedInitilizedAssetFromStream ( ) : void
ShouldCreateSingleFileAssetFromStreamWithNoLocatorUsingOveloadSync ( ) : void
ShouldCreateSingleFileAssetWithNoLocatorUsingOveloadSync ( ) : void
ShouldDeleteAsset ( ) : void
ShouldDeleteAssetAndKeepAzureContainer ( ) : void
ShouldDeleteAssetsForFinishedJob ( ) : void
ShouldDeleteEmptyAsset ( ) : void
ShouldDeleteParentAssetAndGetParentCount ( ) : void
ShouldDownloadAssetFile ( ) : void
ShouldDownloadCommonEncryptionProtectedAssetFile ( ) : void
ShouldDownloadEnvelopeEncryptionProtectedAssetFile ( ) : void
ShouldDownloadEnvelopeEncryptionProtectedAssetFileCreatedFromStream ( ) : void
ShouldDownloadIngestEncryptedAssetFile ( ) : void
ShouldDownloadSameAssetFile2TimesIdenticallyAsStorageSDK ( ) : void
ShouldModifyAssetFile ( ) : void
ShouldNotHaveLocatorsAfterAssetCreation ( ) : void
ShouldNotReturnAssetsForEmptyId ( ) : void
ShouldNotThrowTryingToDeleteAssetWithActiveLocators ( ) : void
ShouldQueryAssetsByNameWithContains ( ) : void
ShouldReportProgressForFile ( ) : void
ShouldSetContentFileSizeOnAssetFileWithoutUpload ( ) : void
ShouldThrowArgumentExceptionOnAssetUploadWhenLocalFileNameNotMatchingAssetFileName ( ) : void
ShouldThrowCreatingAssetFileWithMissingFile ( ) : void
ShouldUpdateAssetNameAndAlternateId ( ) : void
TestQueries ( ) : void
UploadFile ( ILocator locator, IAsset asset, string filePath, CloudMediaContext mediaContext ) : void
VerifyAndDownloadAsset ( IAsset asset, int expectedFileCount, Stream inputStream, bool inputFileValidation, bool performStorageSdkDownloadVerification = true ) : void
VerifyAndDownloadAsset ( IAsset asset, int expectedFileCount, string inputFile, bool inputFileValidation, bool performStorageSdkDownloadVerification = true ) : void

Verifies the and download asset.

Method Details

CompareFiles() public static method

public static CompareFiles ( string fileName1, string fileName2 ) : bool
fileName1 string
fileName2 string
return bool

CreateAsset() public static method

public static CreateAsset ( CloudMediaContext datacontext, string filePath, AssetCreationOptions options, bool isSetPrimary = true ) : IAsset
datacontext CloudMediaContext
filePath string
options AssetCreationOptions
isSetPrimary bool
return IAsset

CreateAssetAndUploadNFilesSync() public static method

public static CreateAssetAndUploadNFilesSync ( int expected, CloudMediaContext mediaContext, string sourceFileName ) : void
expected int
mediaContext CloudMediaContext
sourceFileName string
return void

CreateAssetAndUploadNFilesUsingAsyncCall() public static method

public static CreateAssetAndUploadNFilesUsingAsyncCall ( int expected, CloudMediaContext mediaContext, string sourceFileName ) : IAsset
expected int
mediaContext CloudMediaContext
sourceFileName string
return IAsset

CreateNewFileFromOriginal() public static method

public static CreateNewFileFromOriginal ( DirectoryInfo info, string sourceFileName, string &fileName ) : string
info System.IO.DirectoryInfo
sourceFileName string
fileName string
return string

VerifyAsset() public static method

public static VerifyAsset ( IAsset asset ) : void
asset IAsset
return void