コード例 #1
0
        public void SetUp()
        {
            _uow = MockRepository.GenerateMock<IUnitOfWork>();
            _insideBehavior = MockRepository.GenerateStub<IControllerActionBehavior>();
            _behavior = new access_the_database_through_a_unit_of_work(_uow) {InsideBehavior = _insideBehavior};
            _input = new TestInputModel();
            _output = new TestOutputModel();

            _actionFunc = i => new TestOutputModel();
        }
コード例 #2
0
        public void SetUp()
        {
            _uow            = MockRepository.GenerateMock <IUnitOfWork>();
            _insideBehavior = MockRepository.GenerateStub <IControllerActionBehavior>();
            _behavior       = new access_the_database_through_a_unit_of_work(_uow)
            {
                InsideBehavior = _insideBehavior
            };
            _input  = new TestInputModel();
            _output = new TestOutputModel();

            _actionFunc = i => new TestOutputModel();
        }