public void SetUp()
        {
            syncInterface = typeof(ITestInterface);

            var factory = new AsyncServiceInterfaceFactory();
            asyncInterface = factory.Generate(syncInterface);
        }
예제 #2
0
        public void SetUp()
        {
            syncInterface = typeof(ITestInterface);

            var factory = new AsyncServiceInterfaceFactory();

            asyncInterface = factory.Generate(syncInterface);
        }
        public void Should_cache_generate_interface()
        {
            var factory = new AsyncServiceInterfaceFactory();

            var type1 = factory.Generate(typeof (ITestInterface));
            var type2 = factory.Generate(typeof (ITestInterface));

            Assert.That(type1, Is.SameAs(type2));
        }
예제 #4
0
        public void Should_cache_generate_interface()
        {
            var factory = new AsyncServiceInterfaceFactory();

            var type1 = factory.Generate(typeof(ITestInterface));
            var type2 = factory.Generate(typeof(ITestInterface));

            Assert.That(type1, Is.SameAs(type2));
        }