1

I've had a good look around and I can't seem a specific answer to the above question. For example, this thread:

Building unit tests for MVC2 AsyncControllers

talks about waiting for async actions to finish, which is great, but I then need to be able to retrieve the data returned from the Completed method.

Cheers, Andrew.

Community
  • 1
  • 1
andrewg
  • 11
  • 2

1 Answers1

1

one way is to do this is make the event handler:

controller.AsyncManager.Finished += (sender, ev) => {
                                                  var result = controller.TransactionCompleted();
                                                  trigger.Set();
                                                }
Steve
  • 11
  • 1