How to Integration Testing In .NET Core 2.0

How to Integration Testing In .NET Core 2.0

ReviewCoreASPHosting.NET | Best and cheap ASP.NET Core 2.0 hosting. We all know how important writing tests is when developing software. It ensures that your code is working as expected and allows you to more easily refactor the existing code. Tests can also help someone new to your application learn how it works and what functions it offers. Each test level has its purpose, whether that be the unit testing or integration testing. Having good integration tests is important when you are developing software. It ensures your application's end to end flow is working correctly. While making sure your project has well-designed integration tests, it is equally important that your tests are easy to run and fast. This is an important point if there is a big investment to set up in order for the tests to run. If the tests take a long time to run, people are simply not going to use the application. This blog post shows you how to create an...
Read More
How Getting started with ASP.NET Core 2.0 Preview

How Getting started with ASP.NET Core 2.0 Preview

ReviewCoreASPHosting.NET | Best and cheap ASP.NET Core 2.0 hosting. In this post I want to focus in on a few changes to the basic structure of ASP.NET Core 2.0 applications which simplify the code needed to get started. Before looking at those elements, I felt it would be worth sharing the steps I took to get started with ASP.NET Core 2.0 Preview 1 on my development machine.Getting started with ASP.NET Core 2.0 preview 1 The first step was to get the preview SDK for .NET Core 2.0 which can be safely installed alongside any prior 1.x SDK versions. The announcement post provides a link to download the SDK. The next step was to install the SDK. Nice and easy!Initially I tried creating a project in the existing Visual Studio 2017 IDE. I did so by starting with an ASP.NET Core 1.1 project and simply updating it to target netcoreapp2.0 and the latest ASP.NET Core 2.0 packages. However, this was problematic since I...
Read More
ASP.NET For Beginners – ASP.NET Core with Docker

ASP.NET For Beginners – ASP.NET Core with Docker

ReviewCoreASPHosting.NET | Best and cheap ASP.NET core 1.0 hosting. In this tutorial, you will learn how to build and run your first asp.net core docker image. You will need to install dotnet core and docker on your machine before you begin this tutorial. If you are running behind a proxy some of the commands might not work, so be sure to check out the Proxy-Section below.The Dockerfile If you already have basic knowledge of Docker skip this introduction and go straight to "Choose an image".You can run one of the many images that exist ready for usage on hub.docker.com. You can for example run a command on an instance of Debian a popular Linux Distro with the following command: docker run debian echo "Welcome to Docker"This might take a while the first time, since docker has to pull the image. A second run should start the command in a fraction of a second. Instead of running a "throw away"-container you can also use an container interactively...
Read More