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>(); }
public MutantController(ApiContext context, IMutantService mutantService) { _context = context; _mutantService = mutantService; }
public StatsController(IMutantService mutantService) { _mutantService = mutantService; }
/// <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; }
public MutantController(ILogger <MutantController> logger, IMutantService mutantService) { _logger = logger; _mutantService = mutantService; }
public MutantController(IMutantService mServ) { mutantServ = mServ; }