Integration testing an ASP.NET MVC application

前端 未结 3 724
傲寒
傲寒 2021-02-09 18:52

I need some advice about efficient way of writing integration tests for our current ASP.NET MVC application. Our architecture consists of:

  • A Service Layer below Co
3条回答
  •  被撕碎了的回忆
    2021-02-09 19:20

    Here at office we do not test against real services.

    • We have test in service side
    • We are testing controllers as unit tests, we use mock in these unit tests
    • Yet we don't have a integration test :-(

    We were advised to not use real services for testing, we use Rhino Mocks to simulate answers for methods being called inside controller actions.

    So the problem is still about how to do integration tests in a good way.

    Maybe this could help you:

    http://www.codeproject.com/Articles/98373/Integration-testing-an-ASP-NET-MVC-application-wit.aspx

    but I am still looking for a better understanding about its possibilities.

提交回复
热议问题