Exemple #1
0
        void Verify <TI, TC>()
        {
            Assert.AreEqual(0, Instantiated);

            // Execute
            var test = _sut.Get <TI>();

            Assert.IsInstanceOfType(test, typeof(TC));

            Assert.AreEqual(1, Instantiated);

            Assert.AreSame(test, _sut.Get <TI>());

            Assert.AreEqual(1, Instantiated);
        }
Exemple #2
0
        public void TestMethod1()
        {
            var sut   = _spring.Get <MovieLister>();
            var movie = sut.Find("m").Single();

            Assert.AreEqual("tmp", movie.Name);
        }
			public MyServiceWithScope(IPlasmaContainer container)
			{
				_service = container.Get<IMyService>();
			}