public void Setup() { test_server = new Test(); Bus.Session.Register(path, test_server); Assert.AreEqual(Bus.Session.RequestName(bus_name), RequestNameReply.PrimaryOwner); Assert.AreNotEqual(Bus.Session.RequestName(bus_name), RequestNameReply.PrimaryOwner); test = Bus.Session.GetObject <ITestOne> (bus_name, path); }
public void Setup () { test_server = new Test (); Bus.Session.Register (path, test_server); Assert.AreEqual (Bus.Session.RequestName (bus_name), RequestNameReply.PrimaryOwner); Assert.AreNotEqual (Bus.Session.RequestName (bus_name), RequestNameReply.PrimaryOwner); test = Bus.Session.GetObject<ITestOne> (bus_name, path); }
public void CreateObjectByAnotherInterfaceType() { //-- Act ITestOne one = m_FactoryUnderTest.CreateObject <ITestOne>(); //-- Assert Assert.That(one, Is.Not.Null); }
public void ObjectInstancesAreAlwaysNew() { //-- Act ITestOne one1 = m_FactoryUnderTest.CreateObject <ITestOne>(); ITestOne one2 = m_FactoryUnderTest.CreateObject <ITestOne>(); //-- Assert Assert.That(one1, Is.Not.SameAs(one2)); }
public void CacheAndReuseGeneratedTypes() { //-- Act ITestOne one1 = m_FactoryUnderTest.CreateObject <ITestOne>(); ITestOne one2 = m_FactoryUnderTest.CreateObject <ITestOne>(); //-- Assert Assert.That(one1.GetType(), Is.SameAs(one2.GetType())); }
public DemoController(ITestOne testOne, ITestTwo testTwo, ITestThree testThree , ITestTransient testTransient, ITestScoped testScoped, ITestSingleton testSingleton, TestService testService , IOptions <ConfigOptions> options ) { this._cfgContent = options.Value; _testOne = testOne; _testTwo = testTwo; _testThree = testThree; _testTransient = testTransient; _testScoped = testScoped; _testSingleton = testSingleton; _testService = testService; }
public MathOne(ITestOne testOne) { this.testOne = testOne; }
public AppPermission(ITestOne testOne) { testOne1 = testOne; testOne1.GoCome(); }
public MathOne(ITestOne testOne) { _testOne = testOne; }