From the course: C# Best Practices for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Set up the business layer - C# Tutorial
From the course: C# Best Practices for Developers
Set up the business layer
- [Instructor] So, in Visual Studio, lets go ahead and create a new project and solution by going to File, New, Project. And we'll want to choose a console application, so .NET Framework. And the name of our project will be Prestige.Biz. However for the solution we'll call this BestPractices. And you can choose whatever location you want, and click OK. Now, the next step that I'd like to do, is to create another project, but it'll be a unitest project. So, let's right click on the solution, go to add, new project. Click on test. And let's call this Prestige.BizTest. Click OK. For the test I'd like to keep that in a folder so, I'll right click on the solution and choose: add, solution folder, and I'll name this Test. And all we need to do is select BizTest and drag it into our Test folder. Perfect. So, to make sure everything is set up correctly, let's go ahead and add a class in Prestige.Biz, and its going to be called actor When we're done with that we'll run a quick unit test to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Project setup overview1m 13s
-
(Locked)
Set up the business layer2m 18s
-
(Locked)
Running a unit test3m 13s
-
Class naming conventions and standards5m 2s
-
(Locked)
Field and property naming conventions4m 22s
-
(Locked)
Using constructors3m 9s
-
(Locked)
Unit testing constructors4m 30s
-
(Locked)
Namespaces2m 48s
-
(Locked)
Static classes3m 10s
-
(Locked)
Unit testing static classes4m 20s
-
(Locked)
Using a singleton2m 6s
-
(Locked)
-
-
-
-