public void Should_ApproveEnquiryReply() { var enquiryReply = new EnquiryReply(EnquiryReplyMessage, EnquiryId, EnquiryReplyStatusId, CommitteeId, IsComment); enquiryReply.ApproveEnquiryReply(); enquiryReply.ShouldNotBeNull(); enquiryReply.EnquiryReplyStatusId.ShouldBe((int)Enums.EnquiryReplyStatus.Approved); }
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)); }