Example #1
0
 public void Setup()
 {
     _mockery    = new MockRepository( );
     task        = _mockery.DynamicMock <ILeaseTasks>( );
     mockRequest = _mockery.DynamicMock <IHttpRequest>( );
     mockView    = _mockery.DynamicMock <ICurrentLeasesView>( );
 }
Example #2
0
 public LeaseSlipPresenter(ILeaseSlipView view, IHttpRequest request, ICatalogTasks task, ILeaseTasks leaseTask,
                           ILeaseRequestDtoFromHttpRequestMapper mapper)
 {
     _view      = view;
     _request   = request;
     _task      = task;
     _leaseTask = leaseTask;
     _mapper    = mapper;
 }
Example #3
0
        public void Setup()
        {
            _mockery        = new MockRepository( );
            _mockRequest    = _mockery.DynamicMock <IHttpRequest>( );
            _mockTask       = _mockery.DynamicMock <ICatalogTasks>( );
            _mockLeaseTasks = _mockery.DynamicMock <ILeaseTasks>( );
            _mockView       = _mockery.DynamicMock <ILeaseSlipView>( );

            _mockMapper = _mockery.DynamicMock <ILeaseRequestDtoFromHttpRequestMapper>( );
        }
Example #4
0
 public LeaseWebServices(ILeaseTasks underlyingTask)
 {
     _underlyingTask = underlyingTask;
 }
Example #5
0
 public CurrentLeasesPresenter(ICurrentLeasesView view, IHttpRequest request, ILeaseTasks task)
 {
     _view    = view;
     _request = request;
     _task    = task;
 }