AhmedShabaanHelwa / PackItKata

Kata of DevMentors: Mini Course #1 Clean Architecture + CQRS
0 stars 0 forks source link

Testing PackingList and PackingName #12

Closed AhmedShabaanHelwa closed 2 years ago

AhmedShabaanHelwa commented 2 years ago

Overview

Add test classes and cases to PackIt.Tests.Domain to test PackingList and PackingName entity and value object respectively. The tests follows the convection of Should and ShouldNot.

PackingList Test cases:

Should not

  1. Accept either empty, null or white space(s).

PackingListName Test cases:

Should

  1. Be capable of implicit coversion from string to valid PackingListName
  2. Be capable of implicit conversion from PackingListName to string

    Should not

  3. Accept either empty, null or white space(s).
AhmedShabaanHelwa commented 2 years ago

Approved.