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

            models = modelDAO.GetModelsByBrand(_brandId);
        }
コード例 #2
0
 public void TestGetModelsByBrand_BrandNotFoundException()
 {
     Assert.Throws <BrandNotFoundException>(() => modelDAO.GetModelsByBrand(-1));
 }