public void ImplementConstructorInjection()
        {
            // Arrange
            Refer <int> myRefer = new Refer <int>();

            myRefer.Str = "HiHello";
            Container.RegisterInstance <Refer <int> >(myRefer)
            .RegisterType <Refer <int> >();

            // Act
            Refer <int> result = Container.Resolve <Refer <int> >();

            // Validate
            Assert.AreSame(myRefer, myRefer);
        }
        public void ConstrucotorInjectionGenerics()
        {
            // Arrange
            Refer <int> myRefer = new Refer <int>();

            myRefer.Str = "HiHello";
            Container.RegisterInstance <Refer <int> >(myRefer)
            .RegisterType <IRepository <int>, MockRespository <int> >();

            // Act
            IRepository <int> result = Container.Resolve <IRepository <int> >();

            // Validate
            Assert.IsInstanceOfType(result, typeof(IRepository <int>));
        }
 public MockRespository(Refer <TEntity> obj)
 {
 }