public void MapsToViewModel()
            {
                var endpoint = TestableNewThreadEndpoint.Build();
                var request = new NewThreadRequest();
                var expectedViewModel = new NewThreadViewModel();

                endpoint.Mapper.Setup(x => x.Map<NewThreadRequest, NewThreadViewModel>(request)).Returns(expectedViewModel);

                var viewModel = endpoint.NewThread(request);

                viewModel.ShouldEqual(expectedViewModel);
            }
 public NewThreadViewModel NewThread(NewThreadRequest request)
 {
     return _mapper.Map<NewThreadRequest, NewThreadViewModel>(request);
 }