Example #1
0
        public void CanDeleteItem()
        {
            string            itemName = "Test RenameItem ".RandomLetters(8);
            string            newName  = "New Name ".RandomLetters(8);
            CatalogService    svc      = _serviceRegistry.Get <CatalogService>();
            CatalogDefinition catalog  = svc.CreateCatalog(5.RandomLetters());
            ItemDefinition    item     = svc.CreateItem(itemName);

            svc.DeleteItem(item.Cuid);
            ItemDefinition shouldBeNull = svc.GetItem(item.Cuid);

            Expect.IsNull(shouldBeNull);
        }