public void SetUp()
        {
            this.mockery = new Mockery();

            this.module = new TestModule();

            this.testee = new ModuleController();
            this.testee.Initialize(this.module);
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            this.module = new TestModule();
            this.testee = new ModuleController();
            this.testee.Initialize(this.module);

            this.module.Controller = this.testee;

            Assert.IsFalse(this.testee.IsAlive, "controller should not be active yet.");
        }
 public void SetUp()
 {
     this.module = new TestModule();
 }
Exemplo n.º 4
0
        public void MessagesAreConsumedMultithreaded()
        {
            this.module = new TestModule();
            this.testee = new ModuleController();
            this.testee.Initialize(this.module, 10);

            this.module.Controller = this.testee;

            const int NumberOfMessages = 1000;

            this.EnqueueAndConsume(NumberOfMessages);
        }
 public void SetUp()
 {
     this.module = new TestModule();
 }