Skip to content

Jinboi/unit-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Console-Unit Testing

This project served as an opportunity to learn about unit testing. In this project, I've created unit tests for the Coding Tracker App that I've created before.I've created a CodingTracker.Tests project, parallel to the coding tracker and reference it in my csproj file. I've only test the validation methods, making sure the app correctly prevents the user from giving incorrect inputs

the result of unit testing

Features

  • Track shifts per employee. Add, edit, or delete both shifts and employee with a responsive database (delete the employee? All their shifts are gone too!)

alt text

Getting started

  • After cloning repo, make sure you have MSSQL server set up.
  • IMPORTANT: replace your own MSSQL server information in the OnConfiguring method of ShiftLogContext.cs.
  • Log those shifts!

Comments

  • While this is just a simple project meant for learning about APIs and practicing the repository pattern, all are welcome to use this as a template for an ASP.net API or any other purpose you can think of.

Credit

This project was originally forked from the C# Academy repo. It has been reuploaded to its own independent repo because the fork contained other students' versions of the project. Shout out to Pablo for making such a great resource!

About

Unit testing using .NET MSTest library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages