TGIMBA .NET Core Upgrade – Part 3 – API Code Integration Test Complete

Git  Code

Just like the Data Access Layer (DAL) posts, this will be a short blog entry.  This multi-part series is documenting the process/progress of updating TGIMBA from its ‘classic’ .NET 4.X upbringing to its .NET ‘Core’ adult-hood.  When I first started this, I was expecting there to be a lot more ‘uhhh…where did that library go?’ moments.  With the caveat that I haven’t started the ‘Angularization’ of the current JQuery front-end and there may be some surprises yet in store, I have been impressed how easy the transition has been.  Perhaps I missed a lot of pain of sitting the .NET Core 1 transition (not on purpose), but I was expecting a lot more breaking changes.

For example, making the transition to Store Apps was kind painful.  A lot of the libraries were completely different.  I hope more .NET Core changes to come follow the same model.

In this blog post, I chose to replicate the same strategy I used for DAL tests and just write integration tests.  I am anticipating a lot of this code to be gone once I plug in the TGIMBA Node JavaScript API.  I added three tests – testing the demonstration user, the dashboard and an integration test to go through the basic functions the API code handles.

Specifics:

  • Integration Test Class

netCorePart2-2

  • Running the tests.

netCorePart2-1

On to Angular – Stay tuned!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s