Exemplo n.º 1
0
        public void GetAsset_Test()
        {
            IAssetViewService assetService = new AssetViewService(_mockAssetRepository.Object);
            Asset assetDto = assetService.GetAsset(assetAId);

            Assert.IsNotNull(assetDto);
            Assert.AreEqual(assetA.Identifier, assetDto.Identifier, "The id does not match the expected value.");
            Assert.AreEqual(assetA.Name, assetDto.Name, "The name does not match the expected value.");
            Assert.AreEqual(assetA.Content.Data, assetDto.Content.Data, "The data does not match the expected value.");
        }
Exemplo n.º 2
0
 public void GetAsset_BadRepoTest()
 {
     IAssetViewService assetService = new AssetViewService(_mockAssetRepository.Object);
     assetService.GetAsset(assetBadId);
 }