private ProductSqlDataProvider CreateInstance() { IDataContext dataContext = A.Fake <IDataContext>(); IModelDataService <Product.Data.DataModel.VProduct> modelDataService = A.Fake <IModelDataService <Product.Data.DataModel.VProduct> >(); ProductSqlDataProvider productSqlDataProvider = new ProductSqlDataProvider(dataContext, modelDataService); return(productSqlDataProvider); }
public void test() { ProductSqlDataProvider productSqlDataProvider = CreateInstance(); productSqlDataProvider.ListProducts(1, ProductFlagTypes.Active, ProductOrder.CostAsc); }