public void ItMapsPathForPath()
        {
            var catalogItem = A.CatalogItem().Build();

            var mapper = new NativeCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(catalogItem.Path, catalogItemInfo.Path);
        }
        public void ItMapsTheNameAsIs()
        {
            var catalogItem = A.CatalogItem().Build();

            var mapper = new NativeCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(catalogItem.Name, catalogItemInfo.Name);
        }
        public void ItMapsResourceAsOther()
        {
            var catalogItem = A.CatalogItem()
                              .WithType(ItemTypeEnum.Resource)
                              .Build();

            var mapper = new NativeCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(CatalogItemType.Other, catalogItemInfo.Type);
        }
        public void ItMapsAReportAsAReport()
        {
            var catalogItem = A.CatalogItem()
                              .WithType(ItemTypeEnum.Report)
                              .Build();

            var mapper = new NativeCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(CatalogItemType.Report, catalogItemInfo.Type);
        }