Exemplo n.º 1
0
        public void ExpenditureWaybillService_Accept_From_ReadyToAccept_If_UserReadyToAcceptState_Denied()
        {
            setting.UseReadyToAcceptStateForExpenditureWaybill = false;
            waybill.PrepareToAccept();

            expenditureWaybillService.Accept(waybill, acceptedBy.Object, DateTime.Now);

            Assert.AreEqual(ExpenditureWaybillState.ArticlePending, waybill.State);
        }
Exemplo n.º 2
0
        public void ExpenditureWaybill_PrepareToAccept_Must_Set_ReadyToAcceptState()
        {
            waybill.PrepareToAccept();

            Assert.AreEqual(ExpenditureWaybillState.ReadyToAccept, waybill.State);
        }