Forum Xamarin Xamarin.Forms

How to test an app with an asp.net core web api backend

AustyAusty Member ✭✭✭

l have a solution that contains an asp.net core mvc web app project and a xamarin.forms project. the web api has a comics api that
will be consumed by the web app and the web app. l have written the code to consume the api in the mobile but l need to run the web
app and mobile app together to successfully test that the api is been consumed by the mobile app. How can l run the web app and the
mobile app concurrently.

Best Answers

Answers

  • Moses_SundayMoses_Sunday Member ✭✭

    Things to consider:

    • Understanding and using Unit Tests correctly are important for your ASP.NET Core Web API solutions
    • Learning about and using Mock data for your unit testing will allow you to have stable testing scenarios
    • Creating Mock Data projects in .NET Core 2.1 for use in your ASP.NET Core Web API solutions
    • Understanding and setting up Integration Testing to test your APIs externally for a fully tested ASP.NET Core 2.1 Web API solution
  • AustyAusty Member ✭✭✭

    @batmaci perfect answer...thanks a lot...l wish there was a forum like this for asp.net mvc.. l Love this forum

  • AustyAusty Member ✭✭✭

    @batmaci thanks..

Sign In or Register to comment.