public virtual void Begin()
        {
            var factory = LocatorHelper.GetInstance <IUnitOfWorkFactory>();

            unitOfWork = factory.Create();

            unitOfWork.Begin();
        }
 public virtual void Validate(TEntity entity)
 {
     try
     {
         LocatorHelper.GetInstance <TValidator>().ValidateAndThrow(entity);
     }
     catch (ValidationException ex)
     {
         throw ex;
     }
 }
 public void Begin()
 {
     contextManager = LocatorHelper.GetInstance <IContextManager>();
 }