Esempio n. 1
0
        public UnitTests()
        {
            appHost = new BasicAppHost(typeof (ServerEventsServices).Assembly)
            {
                ConfigureContainer = container =>
                {
                    //Add your IoC dependencies here
                    container.RegisterAutoWiredAs<MemoryChatHistory, IChatHistory>();
                    appHost.Plugins.Add(new ServerEventsFeature());

                }
            };
            appHost.Init();
        }
Esempio n. 2
0
 public UnitTests()
 {
     appHost = new AppHost();
     appHost.Init().Start("http://*:2337/");
 }