示例#1
0
        public void WriteoffWaybill_Attempt_To_PrepareToAccept_Must_Set_ReadyToAcceptState()
        {
            var writeoffWaybillRow = new WriteoffWaybillRow(receiptWaybillRow, 50);

            writeoffWaybill.AddRow(writeoffWaybillRow);

            writeoffWaybill.PrepareToAccept();

            Assert.AreEqual(WriteoffWaybillState.ReadyToAccept, writeoffWaybill.State);
        }
示例#2
0
        public void WriteoffWaybillService_Accept_From_ReadyToAccept_If_UserReadyToAcceptState_Denied()
        {
            setting.UseReadyToAcceptStateForWriteOffWaybill = false;
            waybill.PrepareToAccept();

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

            Assert.AreEqual(WriteoffWaybillState.ArticlePending, waybill.State);
        }