public Customer(
     CustomerNumber number,
     CustomerCspId cspId,
     CustomerLicensingMode licensingMode)
 {
     Number = number
              ?? throw new ArgumentNullException(nameof(number));
     CspId = cspId
             ?? throw new ArgumentNullException(nameof(cspId));
     LicensingMode = licensingMode;
 }
コード例 #2
0
 public void BeEqualToAnotherCustomerCspIdWithTheSameValue(CustomerCspId first, CustomerCspId second)
 {
     first.Should().Be(second);
     first.GetHashCode().Should().Be(second.GetHashCode());
     (first == second).Should().BeTrue();
 }