public CategoryDataProviderTests()
        {
            IDataContext dataContext = A.Fake <IDataContext>();

            _modelDataService     = A.Fake <IModelDataService <Category.Data.DataModel.VCategory> >();
            _categoryDataProvider = new CategoryDataProvider(dataContext, _modelDataService);
        }
Beispiel #2
0
        public TemplateInfoDto GetTemplate(object templateId)
        {
            TemplateInfoDto template = new TemplateInfoDto();

            template.Categorys = CategoryDataProvider.MockCategories();

            template.Keywords = KeywordDataProvider.MockKeywords();

            return(template);
        }
Beispiel #3
0
 public JokeBusinessLogic()
 {
     categoryData = new CategoryDataProvider();
     jokeData = new JokeDataProvider();
     commentData = new CommentDataProvider();
 }
Beispiel #4
0
 public JokeBusinessLogic()
 {
     categoryData = new CategoryDataProvider();
     jokeData     = new JokeDataProvider();
     commentData  = new CommentDataProvider();
 }
Beispiel #5
0
 override protected void OnInit(EventArgs e)
 {
     _categoryManagerData = new CategoryDataProvider();
 }