Пример #1
0
        public void RegistrationUDP()
        {
            Registor regist    = Registor.getInstance();
            var      container = regist.Get();
            var      instance  = container.GetInstance <IProtocol>("UDP");

            Assert.IsInstanceOf(typeof(UDPParser), instance);
        }
Пример #2
0
        public void Constructor()
        {
            Registor regist = Registor.getInstance();

            Assert.IsInstanceOf(typeof(UDPParser), regist.Get().GetInstance <IProtocol>("UDP"));
        }