コード例 #1
0
ファイル: Form1.cs プロジェクト: snoopie72/NrImporter
 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();
 }
コード例 #2
0
 public void Setup()
 {
     var connectionString = ConfigurationManager.ConnectionStrings["nr"].ConnectionString;
     _service = new SqlDirectService(connectionString);
 }