예제 #1
0
        public XDMessagingClient()
        {
            var container = SimpleIocContainerBootstrapper.GetInstance();

            Listeners    = new Listeners(this, container);
            Broadcasters = new Broadcasters(this, container);
        }
예제 #2
0
        public void GivenIocContainerInitializeShouldCompleteInLessThanHalfSecond()
        {
            // arrange
            var stopwatch = new Stopwatch();

            stopwatch.Start();

            // act
            SimpleIocContainerBootstrapper.GetInstance(true);
            stopwatch.Stop();

            // assert
            Assert.That(stopwatch.Elapsed.Milliseconds, Is.LessThanOrEqualTo(500));
        }
예제 #3
0
 public void SetUp()
 {
     instance = SimpleIocContainerBootstrapper.GetInstance(true);
 }