예제 #1
0
        public void Can_implicitly_convert_from_string()
        {
            var guidString        = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee";
            GuidEntityIdentity id = guidString;

            id.HumanReadableId.Should().Be(guidString);
        }
예제 #2
0
        public void Can_implicitly_convert_from_guid()
        {
            var guid = Guid.Parse("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee");
            GuidEntityIdentity id = guid;

            id.HumanReadableId.Should().Be(guid.ToString());
        }