Exemplo n.º 1
0
 public void CanSetTitle()
 {
     const string expectedTitle = "description";
     var assetDetail = new AssetDetails
     {
         Title = expectedTitle
     };
     Assert.AreEqual(expectedTitle, assetDetail.Title);
 }
Exemplo n.º 2
0
 public void CanSetDescription()
 {
     const string expectedDescription = "test description";
     var assetDetail = new AssetDetails
     {
         Description = expectedDescription
     };
     Assert.AreEqual(expectedDescription, assetDetail.Description);
 }
Exemplo n.º 3
0
 public void CanSetFile()
 {
     var file = new File
     {
         ContentType = "application/png",
         FileName = "image.png",
         Url = "http://image.com/image.png"
     };
     var assetDetail = new AssetDetails
     {
         File = file
     };
     Assert.AreSame(file, assetDetail.File);
 }
Exemplo n.º 4
0
 public void TestCanSetDetails()
 {
     var assetDetails = new AssetDetails();
     assetDetails.Description = "Description";
     assetDetails.File = new File()
     {
         ContentType = "image/png",
         Details = new {},
         FileName = "test.png",
         Url = "http://test.com/test.png",
         SystemProperties = new SystemProperties()
         {
             Id = "testId"
         }
     };
     var asset = new Asset {Details = assetDetails};
     Assert.AreEqual(assetDetails, asset.Details);
 }