public void TestOpenStudiesRequest()
        {
            var referenceObject = new BaselineDataContracts.OpenStudiesRequest
            {
                ActivateIfAlreadyOpen = false,
                StudiesToOpen         = new List <BaselineDataContracts.OpenStudyInfo>
                {
                    new BaselineDataContracts.OpenStudyInfo {
                        StudyInstanceUid = "1.234"
                    },
                    new BaselineDataContracts.OpenStudyInfo {
                        StudyInstanceUid = "56.78"
                    },
                    new BaselineDataContracts.OpenStudyInfo {
                        StudyInstanceUid = "9.0"
                    }
                }
            };

            var currentObject = TestRequestContractCompatibility <OpenStudiesRequest>(referenceObject);

            Assert.AreEqual(referenceObject.ActivateIfAlreadyOpen, currentObject.ActivateIfAlreadyOpen);
            AssertAreSequenceEqual(referenceObject.StudiesToOpen, currentObject.StudiesToOpen, (a, b) => a.StudyInstanceUid == b.StudyInstanceUid);
        }
		public void TestOpenStudiesRequest()
		{
			var referenceObject = new BaselineDataContracts.OpenStudiesRequest
			                      	{
			                      		ActivateIfAlreadyOpen = false,
			                      		StudiesToOpen = new List<BaselineDataContracts.OpenStudyInfo>
			                      		                	{
			                      		                		new BaselineDataContracts.OpenStudyInfo {StudyInstanceUid = "1.234"},
			                      		                		new BaselineDataContracts.OpenStudyInfo {StudyInstanceUid = "56.78"},
			                      		                		new BaselineDataContracts.OpenStudyInfo {StudyInstanceUid = "9.0"}
			                      		                	}
			                      	};

			var currentObject = TestRequestContractCompatibility<OpenStudiesRequest>(referenceObject);
			Assert.AreEqual(referenceObject.ActivateIfAlreadyOpen, currentObject.ActivateIfAlreadyOpen);
			AssertAreSequenceEqual(referenceObject.StudiesToOpen, currentObject.StudiesToOpen, (a, b) => a.StudyInstanceUid == b.StudyInstanceUid);
		}