public void SetUp()
        {
            this.mockery    = new Mockery();
            this.controller = this.mockery.NewMock <IModuleController>();

            this.testee = new SkipIfDuplicateInQueueModuleExtension();

            this.testee.ModuleController = this.controller;

            Expect.Once.On(this.controller).EventAdd("BeforeConsumeMessage");
            this.testee.Attach();
        }
        public void SetUp()
        {
            this.mockery = new Mockery();
            this.controller = this.mockery.NewMock<IModuleController>();

            this.testee = new SkipIfDuplicateInQueueModuleExtension();

            this.testee.ModuleController = this.controller;

            Expect.Once.On(this.controller).EventAdd("BeforeConsumeMessage");
            this.testee.Attach();
        }