public void CEcho()
        {
            var association = CreateAssociation();
            var activeAssociation = CreateActiveAssociation(association);
            Expect.Call(association.GetAcceptedTransferSyntaxUID(1)).Return("");
            var dicomCommand = mockRepository.DynamicMock<IDicomCommand>();
            Expect.Call(dcmObjectFactory.NewCommand()).Return(dicomCommand);
            Expect.Call(dicomCommand.InitCEchoRQ(0)).Return(dicomCommand);
            var dimse = mockRepository.DynamicMock<IDimse>();
            Expect.Call(associationFactory.NewDimse(1, dicomCommand)).Return(dimse);
            var presContext = mockRepository.DynamicMock<PresentationContext>(0x20, 2, 3, "", tranferSyntax);
            Expect.Call(associationFactory.NewPresContext(1, UIDs.Verification, tranferSyntax)).Return(presContext);
            //Expect.Call(() => _aAssociateRq.AddPresContext(presContext));
            Expect.Call(activeAssociation.Invoke(dimse)).Return(null);
            mockRepository.ReplayAll();
            var scu = new ServiceClassUser(unityContainer, "NEWTON", "DCM4CHEE", HOSTNAME, PORT);

            var succeed = scu.CEcho();

            Assert.IsTrue(succeed);
        }
        public void CEchoEndpointDoesNotSupportTheTransferSyntax()
        {
            var association = CreateAssociation();
            CreateActiveAssociation(association);
            var presContext = mockRepository.DynamicMock<PresentationContext>(0x20, 2, 3, "", tranferSyntax);
            Expect.Call(association.GetAcceptedTransferSyntaxUID(1)).Return(null);
            Expect.Call(associationFactory.NewPresContext(1, UIDs.Verification, tranferSyntax)).Return(presContext);
            //Expect.Call(() => aAssociateRq.AddPresContext(presContext));
            mockRepository.ReplayAll();
            var scu = new ServiceClassUser(unityContainer, "NEWTON", "DCM4CHEE", HOSTNAME, PORT);

            var succeed = scu.CEcho();

            Assert.IsFalse(succeed);
        }