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 Customer Get(CustomerNumber customerNumber) =>
 customersInformationStoreMock.Object.Get(customerNumber);
示例#3
0
 public void BeEqualToAnotherCustomerNumberWithTheSameValue(CustomerNumber first, CustomerNumber second)
 {
     first.Should().Be(second);
     first.GetHashCode().Should().Be(second.GetHashCode());
     (first == second).Should().BeTrue();
 }