Beispiel #1
0
 public DeleteMovieSteps(ScenarioContext injectedContext,
                         ITestServices movieTestService, CreateMovieContext createMovieContext)
 {
     _movieTestService   = movieTestService;
     _createMovieContext = createMovieContext;
     _scenarioContext    = injectedContext;
 }
Beispiel #2
0
 public TestController(ITestServices testServices, IMapper mapper, IHttpContextAccessor accessor, IMemoryCache memoryCache, IDistributedCache cache)
 {
     _testServices = testServices;
     _mapper       = mapper;
     _accessor     = accessor;
     _memoryCache  = memoryCache;
     _cache        = cache;
 }
Beispiel #3
0
 public TestController(ITestServices testServices, IMapper mapper, IHttpContextAccessor accessor, IMemoryCache memoryCache, IDistributedCache cache, IRedisBaseRepository redis)
 {
     _testServices = testServices;
     _mapper       = mapper;
     _accessor     = accessor;
     _memoryCache  = memoryCache;
     _cache        = cache;
     _redis        = redis;
 }
Beispiel #4
0
 public TestController()
 {
     testServices = new TestServices();
 }
 public TestController(ITestServices testServices)
 {
     this.testServices = testServices;
 }
Beispiel #6
0
 public TestController(ITestServices TestService)
 {
     _TestService = TestService;
 }
        //private readonly IDistributedCache distributedCache;

        //public TestController(ITestServices itestServices, IOptions<AppSettings> options,  IDistributedCache distributedCache)
        //{
        //    appSettings = options.Value;

        //    testServices = itestServices;

        //    this.distributedCache = distributedCache;
        //}

        //private readonly IRedisCache redisCache;

        // public TestController(ITestServices itestServices, IOptions<AppSettings> options, IRedisCache iredisCache)
        // {
        //     appSettings = options.Value;

        //     testServices = itestServices;

        //     redisCache = iredisCache;
        // }

        public TestController(ITestServices itestServices, IOptions <AppSettings> options)
        {
            appSettings = options.Value;

            testServices = itestServices;
        }
Beispiel #8
0
 public BaseController(ITestServices testServices)
 {
     Db = new SqlConnection(ConfigurationManager.ConnectionStrings[@"Db"].ConnectionString);
     this._testServices = testServices;
 }
Beispiel #9
0
        //public BaseVM baseVM = new BaseVM();

        //private readonly ILogger<ApplicationUserController> _logger;
        //private readonly IMapper _mapper;
        #endregion  Private Declarations

        public TestController(ITestServices TestServices)
        {
            _TestService = TestServices;
            //_logger = logger;
            //_mapper = mapper;
        }
 public TestController(ITestServices service)
 {
     this.service = service;
 }
Beispiel #11
0
 public TestController(ITestServices service)
 {
     this.service = service;
 }
        //private readonly ITimeJobService _timeJobService;

        public ValuesController(ITestServices iTestServices
                                )
        {
            _iTestServices = iTestServices;
            //_timeJobService = timeJobService;
        }
 public DeleteMovieSteps(ITestServices movieTestService,
                         CreateMovieContext createMovieContext)
 {
     _movieTestService   = movieTestService;
     _createMovieContext = createMovieContext;
 }
 public TestController(ICanineProjDbContext dbCtx, ITestServices testSvcs)
 {
     dbContext    = dbCtx ?? throw new ArgumentNullException(nameof(dbCtx));
     testServices = testSvcs ?? throw new ArgumentNullException(nameof(testSvcs));
 }
Beispiel #15
0
 public TestApiController()
 {
     _TestServices = new TestServices();
 }
Beispiel #16
0
 public GetMoviesSteps(ITestServices movieTestService)
 {
     _movieTestService = movieTestService;
 }
Beispiel #17
0
 public TestController(ITestServices testService)
 {
     _testService = testService;
 }
Beispiel #18
0
 /// <summary>
 /// 构造函数注入点
 /// </summary>
 /// <param name="bookScarkService"></param>
 public DefaultController(ITestServices bookScarkService)
 {
     _bookscarkservice = bookScarkService;
 }
 public GetMoviesSteps(ScenarioContext injectedContext, ITestServices movieTestService)
 {
     _movieTestService = movieTestService;
 }
Beispiel #20
0
 public DataController(IDataServices dataServices, ITestServices testServices)
 {
     _dataServices = dataServices;
     _testServices = testServices;
 }
Beispiel #21
0
 public TestController(ITestServices testServices, IMapper mapper)
 {
     _testServices = testServices;
     _mapper       = mapper;
 }
 SampleClass(ITestServices testServicesObj)
 {
     _testServices = testServicesObj;
 }