C# Clean Code and Test

Schleuniger Bundesagentur für Arbeit Ebit Systems Supply On Ci S Safran GEMA VW

C# clean code and Test: practical course for programmers and advanced

In the C# Clean Code course, you will learn how to write high-quality, maintainable code that is less prone to errors. You will gain skills in SOLID and OOP principles, Clean Code rules and effective testing techniques. A step towards excellent software development!

All courses live

In the Academy or online

Your benefits at a glance

  • Lots of practice and immediately applicable knowledge for your projects

  • Certificate for active participation

  • Small groups with max. 8 participants

  • Your trainers are experts with years of teaching and industry experience

  • Comprehensive learning materials

  • Compact, lively and sustainable

What you will learn

  • Understanding and applying Clean Code and Clean Test principles in C# to improve code quality and maintainability.
  • Learning techniques to recognize and avoid code smells, which helps to prevent future errors and issues.
  • Learning the SOLID and object-oriented design principles for more effective and efficient programming in C#.
  • Developing competencies in .NET Core Unit Testing and various test frameworks to improve code quality and early detection of programming errors and side effects.
  • Learning Test Driven Development (TDD), which contributes to better design and increased productivity.

Content

The course covers a selection of the following topics:

  • How do I recognize bad code?
  • Clean Code and Risk Management
  • SOLID and OOP Code Principles
  • Clean Code rules for names, comments, functions
  • Clean Code rules for classes, objects, data structures
  • Clean Code rules for exception handling
  • Functional programming in C#
  • Code-Smell Catalog and avoiding Code-Smells
  • Effective C#: Best Practice
  • .NET Core Unit Testing: MSTest, NUnit, xUnit
  • NUnit Basics: Annotation, Assertion, Parameterized Test
  • Finding Test Data: Equivalence Classes and Boundary Data Testing
  • Naming of Test Methods
  • Test Driven Development (TDD), Test Double Techniques: Mocks, Fakes, Stubs, and Dummies
  • Mocking Frameworks: Moq Framework

Prerequisite

This C# course is aimed at you if you already have some programming experience, ideally in C#.

Description

The C# Clean Code and Unit Test course aims to enhance your skills as a C# developer by preparing you for the challenges of code quality and maintainability. You will learn how to recognize poor code and improve it by applying Clean Code principles and rules. This will include considerations for naming, comments, functions, classes, objects, and data structures. In addition, the effective handling of exceptions will be discussed. You will also learn how functional programming can be implemented in C#, and how code smells can be avoided. Another focus is the imparting of effective C# through best practices. In the unit testing section, you will learn about the various .NET Core unit testing frameworks and how they can be used. You'll learn how to effectively find test data and name test methods meaningfully. Finally, the course covers Test Driven Development (TDD) and various test double techniques. Mocking frameworks, especially the Moq framework, round off the course content. This course provides you with a comprehensive and practical introduction to Clean Code and Unit Testing with C#.

Schedule

Day 1 focuses on the fundamental principles of Clean Code and effective C#. Participants learn to recognize poor code and understand the relationship between Clean Code and risk management. They are introduced to SOLID and OOP code principles and learn rules for naming and commenting code. Furthermore, Clean Code rules for functions and classes, as well as for objects and data structures are discussed. The day ends with practical exercises and application examples.

Day 2 is dedicated to the topics of code smells and functional programming in C#. Participants learn how to implement clean exception handling and which principles of functional programming apply in C#. They get an overview of the code-smell catalog and learn how to avoid code smells in their own work. Finally, they are introduced to the best practices for effective C#, followed by more exercises and application examples.

Day 3 focuses on Unit Testing and Test Driven Development (TDD). Participants are introduced to .NET Core Unit Testing with MSTest, NUnit, and xUnit and learn the basics of NUnit like annotation, assertion, and parameterized test. They will learn strategies for finding test data and how they should name their test methods. The day includes an introduction to Test Driven Development (TDD) and the techniques of test doubles: mocks, fakes, stubs, and dummies. Participants will also practice working with mocking frameworks, particularly the Moq Framework. The day ends with exercises and application examples.

Certificate

Of course, as a participant in this C# Clean Code and Clean Test course, you will receive a certificate. The prerequisite for this is complete participation in all course units and programming assignments.

Course formats

3-day on-site course

The course takes place in our modern and top-equipped training rooms. We provide each participant with a modern laptop during the training. Drinks are provided by the Coding Academy. You will have access to the material at the latest on the first day of the course.

3-day online course

The course takes place online. You only need a computer with internet access; however, for some courses, it is necessary that you install the software used; this is indicated in the description of the respective course. You will have access to the material at the latest on the first day of the course.

4-week program

A new and innovative learning concept. More info about it here.

Where do we go from here?

If you would like to further deepen the C# knowledge gained in this course, we recommend the C# Clean Architecture course.

We look forward to warmly welcoming you in this and future courses at the Coding Academy!

YOUR TRAINERS

The C# for advanced and programmers' course is taught by one of the following instructors:

Dr. Max Meier
Dr. Max Meier

Expert: .NET/C#, Software Architecture, Microservice

Allaithy Raed
Allaithy Raed

Expert: Java, Python, Clean Code, Unit Test, Clean Design

Dr. Matthias Hölzl
Dr. Matthias Hölzl

Expert: Python, C++, Clean Code, Unit Test, Clean Design

Customer testimonial

We thank our customers for their trust.

I found the course very interesting and will incorporate much of it into my ongoing projects.

Thanks to Mr. Raed for the very interesting course, the abundance of information, and the really good case studies and programming workshops.

Peter Havelka

When our employees ask me about training courses in the field of coding and clean code, there is now only one contact name and that is of course you: the Munich Coding Academy! In your courses you have scored with a super performance and great communication, our employees are happy and learn a lot, it could not be better!

Herr Tim Stuckmann,
VW

Astrid Elbe 02 lrg web

My joint projects with the Coding Academy have been very successful and absolutely reliable. The course catalog includes the programming languages that are currently most relevant in companies. The courses on improving software quality and productivity are particularly noteworthy. I can recommend the Coding Akademie as very competent, flexible and professional.

Dr. Astrid Elbe,
Vice President Aviat Networks und ehemalige Managing Director Intel Labs Europe

Request