Esempio n. 1
0
            public void ShouldNotThrowWhenValueIsNull()
            {
                // arrange
                var stronglyTypedId = new IdFor <Order, object>(null);

                // act
                Func <string> act = () => stronglyTypedId.ToString();

                // assert
                act.Should().NotThrow();
            }
Esempio n. 2
0
            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());
            }