public void Should_UpdateStatus()
        {
            var tenderChangeRequest = new TenderChangeRequest();

            tenderChangeRequest.SetTender(new Tender());
            tenderChangeRequest.UpdateStatus(_changeStatusId, _userId, SharedKernel.Enums.TenderActions.AcceptInvitation);
            tenderChangeRequest.ShouldNotBeNull();
            tenderChangeRequest.State.ShouldBe(SharedKernal.ObjectState.Modified);
        }
        public void Should_Constructor_SetValues()
        {
            var tenderChangeRequest = new TenderChangeRequest(_tenderId, _changeRequestTypeId, _changeRequestStatusId, _requestedById, _hasAlternativeOffer);

            tenderChangeRequest.ShouldNotBeNull();
            tenderChangeRequest.TenderId.ShouldBe(_tenderId);
            tenderChangeRequest.ChangeRequestTypeId.ShouldBe(_changeRequestTypeId);
            tenderChangeRequest.ChangeRequestStatusId.ShouldBe(_changeRequestStatusId);
            tenderChangeRequest.RequestedByRoleName.ShouldBe(_requestedById);
            tenderChangeRequest.HasAlternativeOffer.ShouldBe(true);
            tenderChangeRequest.State.ShouldBe(SharedKernal.ObjectState.Added);
        }
        public void Should_CreateCancelationRequest()
        {
            var tenderChangeRequest = new TenderChangeRequest();
            var _rslt = tenderChangeRequest.CreateCancelationRequest(new Tender(), _changeRequestTypeId, _changeRequestStatusId, _requestedById, _cancelationReasonId, _cancelationReasonDescription, _supplierViolatorCRs, _userId);

            tenderChangeRequest.ShouldNotBeNull();
            _rslt.ShouldBeOfType(typeof(TenderChangeRequest));
            _rslt.ChangeRequestStatusId.ShouldBe(_changeRequestStatusId);
            _rslt.ChangeRequestTypeId.ShouldBe(_changeRequestTypeId);
            _rslt.RequestedByRoleName.ShouldBe(_requestedById);
            _rslt.CancelationReasonId.ShouldBe(_cancelationReasonId);
            _rslt.CancelationReasonDescription.ShouldBe(_cancelationReasonDescription);
            _rslt.State.ShouldBe(SharedKernal.ObjectState.Added);
        }
        public void Should_Empty_Construct_TenderChangeRequest()
        {
            var tenderChangeRequest = new TenderChangeRequest();

            tenderChangeRequest.ShouldNotBeNull();
        }