public void Create1()
        {
            ServiceRepository repo = new ServiceRepository();

            var svc1 = new GenericService1 <int>();

            repo.Register(svc1);

            var svc3 = repo.Create <GenericServiceWithParam <IGenericService1 <int> > >();

            Assert.That(svc3, Is.Not.Null);
            Assert.That(svc3.Svc1, Is.SameAs(svc1));
        }
        public void SimpleInstance()
        {
            ServiceRepository repo = new ServiceRepository();

            var svc = new GenericService1 <int>();

            repo.Register(svc);

            Assert.That(repo.Get <GenericService1 <int> >(), Is.SameAs(svc));
            Assert.That(repo.Get <GenericService1 <bool> >(), Is.Null);

            repo.UnRegister <GenericService1 <int> >();

            Assert.Null(repo.Get <GenericService1 <int> >());
        }