public void Start()
        {
            _controller = _input.BuildRemoteController();
            var context = new StorytellerContext(_controller, _input);

            if (_controller.BinPath.IsEmpty())
            {
                throw new Exception("Could not determine any BinPath for the testing AppDomain. Has the Storyteller specification project been compiled, \nor is Storyteller using the wrong compilation target maybe?\n\ntype 'st.exe ? open' or st.exe ? run' to see the command usages\n\n");
            }

            context.Start();

            var registry = new FubuRegistry();


            registry.AlterSettings <DiagnosticsSettings>(_ => _.TraceLevel = TraceLevel.Verbose);
            registry.Mode = "development";
            registry.HostWith <NOWIN>();
            registry.Services.For <IRemoteController>().Use(_controller);
            registry.Services.For <StorytellerContext>().Use(context);

            registry.Services.IncludeRegistry <WebApplicationRegistry>();


            _server = registry.ToRuntime();
        }
Exemple #2
0
 public StorytellerContext(RemoteController controller, OpenInput input)
 {
     _controller = controller;
     _input      = input;
 }