Lokesh Rajana

Lokesh Rajana

  • NA
  • 155
  • 18.8k

how to run unit test cases from asp.net core and angular app

Sep 7 2017 6:50 AM
Hi,
 
here my project have two solutions asp.net solution and angular solution. asp.net solution is for creating web API's and angular solution is for calling that web API's and doing the CRUD operations.
here problem is if i wants to run angular solution i need to keep a asp.net core solution is in running mode. then only that api's will be in enable mode and we can access data.
here i am doing unit testing in asp.net core solution itself if i keep that solution in running mode "run tests" option will not be visible. if i stop the application from running mode it will be enable so i am not getting any contact with database .
how can i do the unit testing.,
for example i wants to insert some record into database through that unit test case .
Please help me out of this issue.
Thanks in advance.
 

Answers (3)