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