-
Unit Tests
Writing Unit Tests for your MVC .NET project Why testing your application? Unit Test writing is something every developer would come into someday. It keeps code finalized, it double checks whether code works as expected. There is even an acronym TTD – Test Driven Development, where they say you should write tests first and then…
|
-
Service class. Dependency Injection
In this chapter we are going to check how to include Dependency Injection to our program. Current progress of our project is released with here, so if you are new then you can download current version and start working on it Why we need service class? Usually when we do web applications then stuff in…
|
-
Add Search functionality
Search functionality MVC .NET project So far we have created .NEt MVC project for Todo app with CRUD operations. For current workflow I created this release tag, so if you are new to this project go ahead and start working from that. But final code for this project is still located here. So lets continue…
|
-
Edit Views, Add ViewModel, Date Validation
Edit menu items Lets start editing our views to make our app to look more professional and easier to use. First thing to note is that we would like to go to Todo folder many times, so it is reasonable to add Todo folder to our header menu. In order to change menu, lets open…
|
-
Database, migrations and controller
In order to create our Todo Controller/view, we need to think about database connection and Migration. Database creation includes 2 steps: Checking ConnectionString and doing Migration. Lets do connection string first. Connection String Lets name our Database as myTodoApp. Check appsettings.json file in your WebApp project, we need to include ConnectionString over there. Add following…
|
-
Add Projects, Packages, Model and DbContext
Now the real work starts! So lets continue with our project. First thing what we want is separate some project parts from each other. You want to have some thought about how different parts of program work with each other. So we gonna do so that our WebApp would use reference to other Classes, but…
|
-
Getting started
Lets start building! First things first. In order to start making, you need to have installed ASP.NET and web development package with Visual Studio. So open Visual Studio Installer and check that you have this installed: If we are all set, then lets start making our app. Open your Visual Studio, click ‘Create a new…
|
-
.NET MVC Todo App Tutorial.
Create your own Todo app using .NET Model-View-Controller method This tutorial takes you through how to get started using .NET Model-View-Controller method. We are going to create it from scratch, add Views, ViewModels, use Dependency Injection to separate Business Logic and in the end add some tests to it. Final version of this project is…
|