Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Latest commit

 

History

History

Chapter01

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

I Hate 'Hello World' Uygulaması

Komutlar

dotnet new help
dotnet new sln -o ElvisGoesOn
dotnet new xunit -o MusicBox.Test
dotnet new classlib -o MusicBox
dotnet sln add ./MusicBox
dotnet sln add ./MusicBox.Test/
cd MusicBox.Test
dotnet add reference ../MusicBox/MusicBox.csproj
dotnet build
cd ..
dotnet test

Eğer Visual Studio Code tarafında Go To Definition gibi seçimler çalışmazsa View->Command Palette->OmniSharp: Select Project ile var olan projeyi seçmemiz sorunun çözümünde yardımcı olacaktır.

Bölüm Soruları

  • dotnet terminal komutu kullanımlarına 3 örnek yazınız. (help, --version hariç )
  • dotnet Core ile hangi tipte projeler geliştirebiliriz?

Mini Lab Çalışması

Aşağıdaki solution iskeletini oluşturup devam eden kod parçasını geliştiriniz. (Süre 15 dakika)

Alfabe(Solution)
--->Alfabe.Entity (Class Library)
--->Alfabe.Service (Class Library)
--->Alfabe.ClientApp.Test (xUnit Test Project)

Test Senaryosu : Service sınıfından çağırdığımda bir metod ile aşağıdaki Kategori listesini çekebilmeliyim. Kategori Listem : Kitap(10 adet), Film (20 Adet), Çay Bardağı (12 Adet)