Ejemplo n.º 1
0
        public async Task CreateCase_Success()
        {
            var response = await _controller.Post(new CaseEx()
            {
                RecordType        = "CREATECASE",
                AccountIdentifier = "2F21F18E-63F5-4AA9-9468-A9A95B7A51B6",
                First_Name__c     = "Martin",
                Last_Name__c      = "Cheng",

                Subject = "My t",
            });

            var Result = response as OkNegotiatedContentResult <CaseResponse>;

            Assert.AreEqual(true, Result.Content.Success);
        }
        public async Task CreateCase_Success()
        {
            var response = await _controller.Post(new CaseEx()
            {
                RecordType               = "Web Support",
                Subject                  = "My t",
                First_Name__c            = "Martin",
                Last_Name__c             = "Cheng",
                Last_4_of_Card_Number__c = "1234",
                ProductType__c           = "Walmart",
                Customer_Question__c     = "test1",
                AccountKey__c            = "5223934",
                Email_Address__c         = "*****@*****.**",
                Phone_Number__c          = "132456789"
            });

            Assert.AreEqual(typeof(OkResult), response.GetType());
        }