public queryUCRNRequest1(string CallerToken, UCRNType UCRN)
        {
            // queryUCRN myQueryUCRN = new queryUCRN();
            MyAccount.QueryUCRNService.queryUCRN myQueryUCRN = new queryUCRN();
            myQueryUCRN.CallerToken                  = CallerToken;
            myQueryUCRN.queryUCRNRequest             = new QueryUCRNRequest();
            myQueryUCRN.queryUCRNRequest.RequestBody = new RequestBody();

            myQueryUCRN.queryUCRNRequest.RequestBody.Item = UCRN;
            this.queryUCRN = myQueryUCRN;
        }
        public queryUCRN(string CallerToken, string UCRN)
        {
            QueryUCRNRequest myQueryUCRN = new QueryUCRNRequest();

            myQueryUCRN.RequestBody = new RequestBody();
            UCRNType myUCRNType = new UCRNType();

            myUCRNType.Value = UCRN;
            myUCRNType.UCRNType1Specified = false;
            myQueryUCRN.RequestBody.Item  = myUCRNType;
            this.CallerToken      = CallerToken;
            this.queryUCRNRequest = myQueryUCRN;
        }
        public queryUCRNRequest1(string CallerToken, string UCRN)
        {
            // queryUCRN myQueryUCRN = new queryUCRN();
            MyAccount.QueryUCRNService.queryUCRN myQueryUCRN = new queryUCRN();
            myQueryUCRN.CallerToken                  = CallerToken;
            myQueryUCRN.queryUCRNRequest             = new QueryUCRNRequest();
            myQueryUCRN.queryUCRNRequest.RequestBody = new RequestBody();
            UCRNType myUCRNType = new UCRNType();

            myUCRNType.Value = UCRN;
            myUCRNType.UCRNType1Specified = false;
            myQueryUCRN.queryUCRNRequest.RequestBody.Item = myUCRNType;
            this.queryUCRN = myQueryUCRN;
        }
        public void queryUCRNTypeTSpecified()
        {
            queryUCRNRequest1 myQueryUCRNRequest = new queryUCRNRequest1(CallerToken, UCRN, true, MyGovScot.MyAccount.QueryUCRNService.UCRNTypeUCRNType.T);
            queryUCRN         myQueryUCRN        = myQueryUCRNRequest.queryUCRN;

            MyGovScot.MyAccount.QueryUCRNService.UCRNType myUCRNType   = (MyGovScot.MyAccount.QueryUCRNService.UCRNType)myQueryUCRN.queryUCRNRequest.RequestBody.Item;
            MyGovScot.MyAccount.QueryUCRNService.UCRNType TestUCRNType = new MyGovScot.MyAccount.QueryUCRNService.UCRNType();
            TestUCRNType.Value = UCRN;
            TestUCRNType.UCRNType1Specified = true;
            Assert.AreEqual(CallerToken, myQueryUCRNRequest.queryUCRN.CallerToken);
            TestUCRNType.UCRNType1 = MyGovScot.MyAccount.QueryUCRNService.UCRNTypeUCRNType.T;
            Assert.AreEqual(TestUCRNType.Value, myUCRNType.Value);
            Assert.AreEqual(UCRN, myUCRNType.Value);
            Assert.AreEqual(TestUCRNType.UCRNType1Specified, myUCRNType.UCRNType1Specified);
            Assert.AreEqual(TestUCRNType.UCRNType1, myUCRNType.UCRNType1);
        }
        public void queryUCRNTypePSpecified()
        {
            //Create an Instance of the queryUCRNWrapper Class
            //MyAccount.queryUCRNWrapper myQueryUCRNwrapper = new queryUCRNWrapper();

            //Create a queryUCRNRequest1 using the method on the wrapper class

            queryUCRNRequest1 myQueryUCRNRequest = new queryUCRNRequest1(CallerToken, UCRN, true, MyGovScot.MyAccount.QueryUCRNService.UCRNTypeUCRNType.P);

            //queryUCRN myQueryUCRN = new queryUCRN();
            MyGovScot.MyAccount.QueryUCRNService.UCRNType myUCRNType   = (MyGovScot.MyAccount.QueryUCRNService.UCRNType)myQueryUCRNRequest.queryUCRN.queryUCRNRequest.RequestBody.Item;
            MyGovScot.MyAccount.QueryUCRNService.UCRNType TestUCRNType = new  QueryUCRNService.UCRNType();
            TestUCRNType.Value = UCRN;
            TestUCRNType.UCRNType1Specified = true;
            TestUCRNType.UCRNType1          = myUCRNTypeType;
            // Check that the Caller Token Value  matches the string  value set
            Assert.AreEqual(CallerToken, myQueryUCRNRequest.queryUCRN.CallerToken);
            Assert.AreEqual(TestUCRNType.Value, myUCRNType.Value);
            Assert.AreEqual(UCRN, myUCRNType.Value);
            Assert.AreEqual(TestUCRNType.UCRNType1Specified, myUCRNType.UCRNType1Specified);
            Assert.AreEqual(TestUCRNType.UCRNType1, myUCRNType.UCRNType1);
        }