Example #1
0
        public void TestDeclineDeal()
        {
            var d = CreateDeal();
            d.ORPType = ORPType.SMB;

            var args = new ORPTeamApprArgs { Comment = Comment };
            var approval = Unit.Decline(d, args);

            AssertDeclineApproval(d, approval);
            Assert.AreEqual(ORPType.SMB, d.ORPType);
            Assert.AreEqual(WorkFlowStep.Decline, d.CurrentStep);
        }
Example #2
0
        public void TestApproveDeal()
        {
            var d = CreateDeal();

            var args = new ORPTeamApprArgs { ORPType = ORPType.SMB, Comment = Comment };
            var approval = Unit.Approve(d, args);

            AssertApproveApproval(d, approval);
            Assert.AreEqual(ORPType.SMB, d.ORPType);
            Assert.AreEqual(WorkFlowStep.ISOAdmin, d.CurrentStep);

            args = new ORPTeamApprArgs { ORPType = ORPType.Soluition, Comment = Comment };
            Unit.Approve(d, args);

            AssertApproveApproval(d, approval);
            Assert.AreEqual(ORPType.Soluition, d.ORPType);
            Assert.AreEqual(WorkFlowStep.SalesOperation, d.CurrentStep);

            args = new ORPTeamApprArgs { ORPType = ORPType.Dist, Comment = Comment };
            Unit.Approve(d, args);
            AssertApproveApproval(d, approval);
            Assert.AreEqual(ORPType.Dist, d.ORPType);
            Assert.AreEqual(WorkFlowStep.SalesOperation, d.CurrentStep);
        }