public void Add(ItemCategory itemcategory)
        {
            using (ISession session = NhibernateHelper.OpenSession())
            {
               using (ITransaction transaction = session.BeginTransaction())
                {
                    session.Save(itemcategory);

                    transaction.Commit();
                }
            }
        }
 public void ItemCategoryShouldBeAdded()
 {
     var itemCategory = new ItemCategory { ItemCode = "CPUI002", ItemName = "AMD Processor" };
     IItemCategoryRepository itemCategoryRepo = new ItemCategoryRepository();
     itemCategoryRepo.Add(itemCategory);
 }