Example #1
0
        public void Should_ApproveEnquiryReply()
        {
            var enquiryReply = new EnquiryReply(EnquiryReplyMessage, EnquiryId, EnquiryReplyStatusId, CommitteeId, IsComment);

            enquiryReply.ApproveEnquiryReply();

            enquiryReply.ShouldNotBeNull();
            enquiryReply.EnquiryReplyStatusId.ShouldBe((int)Enums.EnquiryReplyStatus.Approved);
        }
Example #2
0
        public async Task <EnquiryReply> ApproveEnquiryReply(int enquiryReplyId)
        {
            EnquiryReply enquiryReply = await _enquiryQueries.GetEnquiryReplyWithTender(enquiryReplyId);

            IsReplyApproved(enquiryReply);
            enquiryReply.ApproveEnquiryReply();

            await SendNotificationAfterApproveReply(enquiryReply);

            return(await _enquiryCommands.UpdateReplyAsync(enquiryReply));
        }