public static void TestProductRepository() { using (var repository = new ProductRepository(new AdventureWorksContext())) { var productsBySubCategory = repository.GetGetProductsForSubCategory(1); } }