public async Task TestUpdate()
        {
            try
            {
                UOW.BeginTransaction();
                CategoryType result = await categoryTypeRepository.GetByID(Context, 3);

                Assert.IsNotNull(result, "Expect to find CategoryType State");
                Assert.AreEqual(result.Description, "State", "Expect to find CategoryType Description = State");
                result.Description = "State Test Update";
                CategoryType updated = await categoryTypeRepository.Update(UOW, result);

                UOW.CloseTransaction();
                Assert.IsNotNull(updated, "Expect new CategoryType to be updated.");
                Assert.AreEqual(updated.Description, result.Description, "Expect for Description to be changed to 'State Test Update'");
            }
            catch (Exception ex)
            {
                Assert.IsNull(ex, "Exception Thrown: " + ex.Message);
            }
        }
 public async Task Update(CategoryType categoryType)
 {
     await categoryTypeRepository.Update(categoryType);
 }