Exemplo n.º 1
0
 public static IDbContext GetContext <T>(this DbSet <T> dbSet) where T : class
 {
     return(GeneralContext.GetService <IDbContext>());
 }
Exemplo n.º 2
0
 public UserControllerTest()
 {
     _userService = GeneralContext.GetService <UserService>();
 }
Exemplo n.º 3
0
 public ActivityControllerTest()
 {
     _activityService         = GeneralContext.GetService <ActivityService>();
     _activityTemplateService = GeneralContext.GetService <ActivityTemplateService>();
 }
Exemplo n.º 4
0
 public ApiCacheAttribute(Type modelType, bool preLoad = false)
 {
     _cacheService = GeneralContext.GetService <ICacheService>();
     _modelType    = modelType;
     _preLoad      = preLoad;
 }