Microsoft.WindowsAzure.MediaServices.Client.Tests.AssetTests.ShouldCreateSingleFileAssetWithNoLocatorUsingOveloadSync C# (CSharp) Method

ShouldCreateSingleFileAssetWithNoLocatorUsingOveloadSync() private method

        public void ShouldCreateSingleFileAssetWithNoLocatorUsingOveloadSync()
        {
            IAsset asset = _mediaContext.Assets.Create("Empty", AssetCreationOptions.StorageEncrypted);
            IAssetFile file = asset.AssetFiles.Create(Path.GetFileName(_smallWmv));
            file.Upload(_smallWmv);

            Assert.IsNotNull(asset, "Asset should be non null");
            Assert.AreNotEqual(Guid.Empty, asset.Id, "Asset ID shuold not be null");
            Assert.AreEqual(AssetState.Initialized, asset.State, "Asset state wrong");
        }
AssetTests