public static void Initialize(TestContext _) { var dbConnectionString = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).ConnectionStrings.ConnectionStrings["DbConnectionString"].ConnectionString; cricInfoCommandService = new CricInfoCommandService <Match>(dbConnectionString); cricInfoQueryService = new CricInfoQueryService <Match>(dbConnectionString); }
public MatchController(ICricInfoCommandService cricInfoCommandService, ICricInfoQueryService cricInfoQueryService, ILogger <MatchController> logger) { this.cricInfoCommandService = cricInfoCommandService; this.cricInfoQueryService = cricInfoQueryService; this._logger = logger; }