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); }
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); }