Beispiel #1
0
        public void Should_serialize_and_deserialize_in_object()
        {
            var obj = new MyTest
            {
                Id0 = DomainId.NewGuid(),
                Id1 = NamedId.Of(DomainId.NewGuid(), "1"),
                Id2 = NamedId.Of(DomainId.NewGuid(), "2")
            };

            var serialized = obj.SerializeAndDeserialize();

            serialized.Should().BeEquivalentTo(obj);
        }