Esempio n. 1
0
 public Host(string uri)
     : base(uri, new ServerConfig())
 {
     _broadcastService = Aspects.WithTimeMeasure(BroadcastRemoteExecutor.Create <IBroadcastService>(), ConsoleColor.DarkCyan);
     ConnectionClosed += OnConnectionClose;
 }
        public void Should_not_allow_to_generate_proxy_if_interface_have_two_way_methods()
        {
            var ex = Assert.Throws <InvalidOperationException>(() => _subject.Create <ICalculator>());

            Assert.That(ex.Message, Is.EqualTo("ICalculator interface cannot be used for broadcasting because some of its methods returns result."));
        }