public void ItMapsResourceAsOther()
        {
            var catalogItem = A.CatalogItem()
                              .WithType(ItemTypeEnum.Resource)
                              .Build();

            var mapper = new IntegratedCatalogItemInfoMapper();

            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 IntegratedCatalogItemInfoMapper();

            var catalogItemInfo = mapper.MapFromCatalogItem(catalogItem);

            Assert.AreEqual(CatalogItemType.Report, 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);
        }