public void ItMapsAFolderAsAFolder()
        {
            var catalogItem = A.CatalogItem()
                .WithType(ItemTypeEnum.Folder)
                .Build();

            var mapper = new IntegratedCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(CatalogItemType.Folder, catalogItemInfo.Type);
        }
        public void ItMapsLinkedReportAsOther()
        {
            var catalogItem = A.CatalogItem()
                .WithType(ItemTypeEnum.LinkedReport)
                .Build();

            var mapper = new IntegratedCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(CatalogItemType.Other, catalogItemInfo.Type);
        }
        public void ItMapsPathAsIs()
        {
            var catalogItem = A.CatalogItem()
                .WithPath("Path.rdl")
                .WithName("Name.rdl")
                .Build();

            var mapper = new IntegratedCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(catalogItem.Path, catalogItemInfo.Path);
        }
        public void ItRemovesRDLFromTheName()
        {
            var catalogItem = A.CatalogItem()
                .WithPath("Path.rdl")
                .WithName("Name.rdl")
                .Build();

            var mapper = new IntegratedCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(catalogItem.Name.Replace(".rdl", ""), catalogItemInfo.Name);
            Assert.AreEqual(catalogItem.Path, catalogItemInfo.Path);
        }