public Form1() { Thread.CurrentThread.CurrentCulture = new CultureInfo("nn-NO"); var sqlDirectService = new SqlDirectService(ConfigurationManager.ConnectionStrings["db"].ConnectionString); var datalayerService = new DatalayerService(sqlDirectService); var eventService = new EventService(datalayerService); _handler = new EventResultHandler(new UserService(datalayerService), eventService, new FilterService(datalayerService)); InitializeComponent(); }
public void Setup() { var connectionString = ConfigurationManager.ConnectionStrings["nr"].ConnectionString; _service = new SqlDirectService(connectionString); }