Ejemplo n.º 1
0
        protected override void Verify()
        {
            Assert.IsNull(Error);

            dxtools_CreateCustomEmailResponse response = TriggerResponse as dxtools_CreateCustomEmailResponse;

            Assert.IsNotNull(response);

            Assert.AreEqual(string.Empty, response.SentEmailSubject);

            Assert.IsTrue(response.NewCreatedEmail != null && response.NewCreatedEmail.Id != null);

            Entity email = this.OrganizationService.Retrieve("email", response.NewCreatedEmail.Id, new ColumnSet(true));

            Assert.IsTrue(((OptionSetValue)email["statuscode"]).Value == 1); // Draft
        }
Ejemplo n.º 2
0
        protected override void Verify()
        {
            Assert.IsNull(Error);

            dxtools_CreateCustomEmailResponse response = TriggerResponse as dxtools_CreateCustomEmailResponse;

            Assert.IsNotNull(response);

            Assert.IsTrue(!string.IsNullOrEmpty(response.SentEmailSubject) &&
                          response.SentEmailSubject.Contains(TestTrackingToken));

            Assert.IsTrue(response.NewCreatedEmail != null && response.NewCreatedEmail.Id != null);

            Entity email = this.OrganizationService.Retrieve("email", response.NewCreatedEmail.Id, new ColumnSet(true));

            Assert.IsTrue(((OptionSetValue)email["statuscode"]).Value == 3); // Sent
        }