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

            _updated = modelDAO.UpdateModel(_model);
        }
        public void TestUpdateModel_ModelNotFoundException()
        {
            Model model = new Model(-1, 1, "Toyota", 4, null);

            Assert.Throws <ModelNotFoundException>(() => modelDAO.UpdateModel(model));
        }