public void Execute()
        {
            DAOFactory daoFactory = DAOFactory.GetFactory(DAOFactory.Type.Postgres);
            IModelDAO  modelDAO   = daoFactory.GetModelDAO();

            _model = modelDAO.GetModelById(_modelId);
        }
 public void TestGetModelById_ModelNotFoundException()
 {
     Assert.Throws <ModelNotFoundException>(() => modelDAO.GetModelById(-1));
 }