Castle.Facilities.WcfIntegration.Tests.PerWcfOperationLifestyleTestCase.Dependencies_should_not_reused_among_between_calls C# (CSharp) Method

Dependencies_should_not_reused_among_between_calls() private method

		public void Dependencies_should_not_reused_among_between_calls()
		{
			client.OperationOne();
			client.OperationOne();
			Assert.AreEqual(4, ServiceWithDependencies.Dependencies.Count);
			var one1 = ServiceWithDependencies.Dependencies[0] as IOne;
			var one2 = ServiceWithDependencies.Dependencies[2] as IOne;
			Assert.AreNotSame(one1, one2);
		}
	}