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)); }
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)); }