public void Should_display_response_on_view( ) { IEnumerable <DisplayResponseLineDTO> responseDTO = ObjectMother.EnumerableDisplayResponseLineDTO( ); using (mockery.Record( )) { SetupResult.For(mockTask.RegisterNew(null)).IgnoreArguments( ).Return(responseDTO); mockView.Display(responseDTO); } using (mockery.Playback( )) { CreateSUT( ).RegisterCustomer( ); } }
public void RegisterCustomer( ) { _view.Display(_task.RegisterNew(_mapper.MapFrom(_view))); }