public void Execute() { DAOFactory daoFactory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IModelDAO modelDAO = daoFactory.GetModelDAO(); models = modelDAO.GetModelsByBrand(_brandId); }
public void TestGetModelsByBrand_BrandNotFoundException() { Assert.Throws <BrandNotFoundException>(() => modelDAO.GetModelsByBrand(-1)); }