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