コード例 #1
0
        public void Setup()
        {
            _eventService = new EventService(new DatalayerService(new SqlDirectService(ConfigurationManager.ConnectionStrings["db"].ConnectionString)));
            _assembly = Assembly.GetExecutingAssembly();
            _userService =
                new UserService(
                    new DatalayerService(
                        new SqlDirectService(ConfigurationManager.ConnectionStrings["db"].ConnectionString)));
            _filterService = new FilterService(new DatalayerService(
                        new SqlDirectService(ConfigurationManager.ConnectionStrings["db"].ConnectionString)));
            _handler = new EventResultHandler(_userService, _eventService, _filterService);

        }
コード例 #2
0
 public void Setup()
 {
     _userService = new UserService(new ResultDataService(new SqlDirectService(ConfigurationManager.ConnectionStrings["db"].ConnectionString)));
 }