コード例 #1
0
        public void Setup()
        {
            _routeModel = new RouteModel
            {
                Route = "getObjects"
            };

            _config = new ApplicationConfig
            {
                PathToRootFolder = @"C:\MockServerRootFolder",
                ApplicationMode  = ApplicationMode.File
            };

            _filterFactory   = new FilterFactory();
            _fileModelReader = new FileModelReader(_config, _filterFactory);
        }
コード例 #2
0
        public void Setup()
        {
            _routeModel = new RouteModel
            {
                Route = "getObjects.arrayTest"
            };

            IApplicationConfig config = new ApplicationConfig
            {
                PathToRootFolder = @"C:\MockServerRootFolder",
                ApplicationMode  = ApplicationMode.File,
                FileName         = "routes.json"
            };

            _fileModelReader = new FileModelReader(config, _filterFactory);
            _jsonFilter      = new JsonArrayFilter();
        }