public void TestValueToSingleton()
        {
            GuaranteedUniqueInstances uniqueInstance = new GuaranteedUniqueInstances();

            binder.Bind <GuaranteedUniqueInstances> ().ToValue(uniqueInstance);
            GuaranteedUniqueInstances instance1 = binder.GetInstance <GuaranteedUniqueInstances> () as GuaranteedUniqueInstances;
            GuaranteedUniqueInstances instance2 = binder.GetInstance <GuaranteedUniqueInstances> () as GuaranteedUniqueInstances;

            Assert.AreEqual(instance1.uid, instance2.uid);
        }
 public void TestValueToSingleton()
 {
     GuaranteedUniqueInstances uniqueInstance = new GuaranteedUniqueInstances ();
     binder.Bind<GuaranteedUniqueInstances> ().ToValue (uniqueInstance);
     GuaranteedUniqueInstances instance1 = binder.GetInstance <GuaranteedUniqueInstances> () as GuaranteedUniqueInstances;
     GuaranteedUniqueInstances instance2 = binder.GetInstance <GuaranteedUniqueInstances> () as GuaranteedUniqueInstances;
     Assert.AreEqual (instance1.uid, instance2.uid);
     Assert.AreSame (instance1, instance2);
 }