Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Tools and Skills for .NET 10
  • Table Of Contents Toc
Tools and Skills for .NET 10

Tools and Skills for .NET 10 - Second Edition

By : Mark J. Price
5 (2)
close
close
Tools and Skills for .NET 10

Tools and Skills for .NET 10

5 (2)
By: Mark J. Price

Overview of this book

.NET is more powerful—and more complex—than ever. As the ecosystem evolves, so do the expectations from developers. Mastering the tools and patterns of professional .NET development can be the difference between simply shipping code and delivering resilient, scalable software. Tools and Skills for .NET 10 is a practical guide to leveling up in today’s .NET world, offering both hard technical skills and career strategies to help you thrive. Inside, you’ll learn how to manage codebases with Git and implement debugging and memory analysis techniques that save hours of guesswork. The book also covers best practices for writing and maintaining documentation for your code, services, and APIs, which is crucial for team collaboration. You’ll explore cryptography for securing data and concurrency for building responsive apps. Further chapters explore dependency injection, testing for performance and reliability, and packaging your apps in Docker containers. By the end of this book, you’ll be equipped not only with technical skills but also with the confidence to apply them in real environments. Whether you're aiming for a promotion, switching jobs, or preparing for technical interviews, you'll have the skills and the language to present yourself as a capable, well-rounded .NET developer ready for anything the industry throws at you.
Table of Contents (23 chapters)
close
close
22
Index

Testing web services using xUnit

There are multiple ways to test web services:

  • Automated testing frameworks like xUnit, NUnit, and MSTest
  • HTTP request editors like REST Client for VS Code or HTTP Editor in Visual Studio
  • GUI tools like Postman, NSwag, or Swagger UI

One of the trickier aspects of testing web services is how to host the web service during testing and how to simulate an HTTP context. Integration tests for ASP.NET Core projects require the following:

  • A test project to contain and execute the tests. The test project has a reference to the website or web service project aka the system under test (SUT).
  • The test project creates a test web host for the SUT and uses a test server client to handle requests and responses with the SUT.

The Microsoft.AspNetCore.Mvc.Testing package handles the following tasks:

  • Sets the content root to the SUT’s project root so that static files and pages/views are found...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Tools and Skills for .NET 10
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon