Esempio n. 1
0
        public void TestAssignWrongDeal()
        {
            var d = CreateDeal();

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

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

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

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

            const int indsutry2 = 1;
            const int province2 = 1;
            var args = new SalesOperationApprArgs { 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.ChannelManager, d.CurrentStep);
        }