Skip to content

CTBT/dotnet_basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marp true
theme gaia
_class lead
paginate true
backgroundColor
backgroundImage url('https://marp.app/assets/hero-background.svg')

.NET + C# Workshop


Table of content:


Basics


Working with the CLI


Dojo - Querying data with LINQ

In this lesson you will learn to use the correct .net linq library methods to efficiently solve given business requirements

  1. Open the console project employees_console in branch main.
  2. Take a quick look through the given project files to understand what is there and what is missing.
  3. Implement the missing functions and print your results to the console by using the logging api.

Bonus ⭐: Find the performance bug

Testing

  • Creating a (xunit) test project
  • dotnet test
  • add it to the solution
  • unit test explorer
  • writing a first test
  • improving test readability with fluentvalidations

Dojo - Writing test assertions

  1. Open the prepared branch feature/tests
  2. Look into EmployeeService and try to write test assertions for each of the methods.
  3. Use the xunit test framework and the FluentAssertions library

Bonus ⭐: Use Theories


Implementing APIs

  • web host
  • dependency injection
  • open api
  • caching
  • parameters
  • results and http status codes
  • configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages