public void TestInitialize()
        {
            HttpContext.Current = new HttpContext(
                new HttpRequest("", "http://tempuri.org", ""),
                new HttpResponse(new System.IO.StringWriter())
                );

            container  = Unity.UnityConfig.GetConfiguredContainer();
            mutantServ = container.Resolve <IMutantService>();
        }
Exemple #2
0
 public MutantController(ApiContext context, IMutantService mutantService)
 {
     _context       = context;
     _mutantService = mutantService;
 }
Exemple #3
0
 public StatsController(IMutantService mutantService)
 {
     _mutantService = mutantService;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MutantV1Controller"/> class.
 /// </summary>
 /// <param name="mutantService">Service of Mutant</param>
 public MutantV1Controller(IMutantService mutantService)
 {
     _autoMapper    = AutoMapperWeb.GetMapper();
     _mutantService = mutantService;
 }
Exemple #5
0
 public MutantController(ILogger <MutantController> logger, IMutantService mutantService)
 {
     _logger        = logger;
     _mutantService = mutantService;
 }
 public MutantController(IMutantService mServ)
 {
     mutantServ = mServ;
 }