public void With_Empty()
        {
            var sample = new Sample_Message()
            {
                PatientMemberId = Guid.NewGuid().ToString(),
                PatientGroupNumber = string.Empty,
            };

            var test = SerializeThenDeserialize(sample) as Sample_Message;

            Assert.AreEqual(sample.PatientMemberId, test.PatientMemberId);
            Assert.AreEqual(string.Empty, test.PatientGroupNumber);
        }
Exemple #2
0
        public void With_Empty()
        {
            var sample = new Sample_Message()
            {
                PatientMemberId    = Guid.NewGuid().ToString(),
                PatientGroupNumber = string.Empty,
            };

            var test = SerializeThenDeserialize(sample) as Sample_Message;

            Assert.AreEqual(sample.PatientMemberId, test.PatientMemberId);
            Assert.AreEqual(string.Empty, test.PatientGroupNumber);
        }
        public void TransportMessage_No_Null_No_Empty()
        {
            var sample = new Sample_Message()
            {
                PatientMemberId = Guid.NewGuid().ToString(),
                PatientGroupNumber = Guid.NewGuid().ToString(),
            };

            var transportMessage = MakeTransportMessage(sample);
            var test = TransportMessageSerializerTests.Execute(transportMessage, serializer).Body.First() as Sample_Message;

            Assert.AreEqual(sample.PatientMemberId, test.PatientMemberId);
            Assert.AreEqual(sample.PatientGroupNumber, test.PatientGroupNumber);
        }
Exemple #4
0
        public void TransportMessage_With_Null()
        {
            var sample = new Sample_Message()
            {
                PatientMemberId    = Guid.NewGuid().ToString(),
                PatientGroupNumber = null,
            };

            var transportMessage = MakeTransportMessage(sample);
            var test             = TransportMessageSerializerTests.Execute(transportMessage, serializer).Body.First() as Sample_Message;

            Assert.AreEqual(sample.PatientMemberId, test.PatientMemberId);
            Assert.Null(test.PatientGroupNumber);
        }