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