public void ApplicantEmailConfirmation(string EmailID, string ApplicationNumber, string LoanName, string ApplicantName, byte[] ApplicationCopy, string FileName) { string EmailBody = "Dear Applicant, " + ApplicantName + " your " + LoanName + " loan application number " + ApplicationNumber + " is received. We will notify once processed. <br /><br />From:<br />KARNATAKA ARYA VYSYA COMMUNITY DEVELOPMENT CORPORATION"; MS.SendMail(LoanName + " Loan Application Acknowledgment : " + ApplicationNumber, EmailBody, EmailID, "", ApplicationCopy, FileName); }
public void SendMail_with_invalid_body_failed(string body) { //arrange //act var fakeRes = _service.SendMail(body, "Normal", "*****@*****.**"); var asyncFakeRes = _service.SendMailAsync(body, "Normal", "*****@*****.**").Result; //assert Assert.True(fakeRes.HasError); Assert.True(asyncFakeRes.HasError); }