public void ShouldNotThrowWhenValueIsNull() { // arrange var stronglyTypedId = new IdFor <Order, object>(null); // act Func <string> act = () => stronglyTypedId.ToString(); // assert act.Should().NotThrow(); }
public void ShouldProvideValueString() { // arrange var targetId = Guid.NewGuid(); var stronglyTypedId = new IdFor <Order, Guid>(targetId); // act var providedValue = stronglyTypedId.ToString(); // assert providedValue.Should().Be(targetId.ToString()); }