Base solution for your next web application
Open Closed

How to write Integration Testing of TokenAuthcontroller ? #3227


User avatar
0
sajid created

Hello there,

I am new to the Asp.net boiler plate. I want to write an Integration test for a tokenauthController class. Specifically, I want to test Authenticate action as a start up. I googled a lot but did not get any relevant help in that context. I am using MsTest for testing. Right now, I don't know from where should I start.

Can some one please guide me to the right path? Any sample code will be highly appreciated.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can check this test <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/test/Abp.AspNetCore.Tests/Tests/AuthTestController_Tests.cs">https://github.com/aspnetboilerplate/as ... r_Tests.cs</a>