Beispiel #1
0
        public void TestAssignWrongDeal()
        {
            var d = CreateDeal();

            var args = new IsoAdminApprArgs { Comment = Comment };
            var approval = Unit.AssignWrong(d, args);

            AssertAssignWrongApproval(d, approval);
            Assert.AreEqual(WorkFlowStep.ORPTeam, d.CurrentStep);
        }
Beispiel #2
0
        public void TestDeclineDeal()
        {
            var d = CreateDeal();

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

            AssertDeclineApproval(d, approval);
            Assert.AreEqual(WorkFlowStep.Decline, d.CurrentStep);
        }
Beispiel #3
0
        public void TestApproveDeal()
        {
            var d = CreateDeal();

            const int indsutry2 = 1;
            const int province2 = 1;
            var args = new IsoAdminApprArgs { Industry2 = indsutry2, Province2 = province2, Comment = Comment };
            var approval = Unit.Approve(d, args);

            AssertApproveApproval(d, approval);
            Assert.AreEqual(indsutry2, d.Industry2);
            Assert.AreEqual(province2, d.Province2);
            Assert.AreEqual(WorkFlowStep.InsideSales, d.CurrentStep);
        }