Removed unused functions and documented reporting

This commit is contained in:
雲華
2022-04-17 13:19:35 -04:00
parent f6f90c76b2
commit 565997b9d7
5 changed files with 99 additions and 34 deletions

View File

@@ -2,6 +2,10 @@
{
internal class Email
{
/*
* This is a simple email class to mimic what fields
* would exist if we were to send an email.
*/
private readonly string to;
private readonly string subject = "Your payment is due soon!";
private readonly string body = "Hello valued customer, this is a reminder that your payment for your reservation is due soon, please login to the system and pay for your reservation. If you do not it will be canceled.";
@@ -13,6 +17,12 @@
}
internal void Send()
{
/*
* Typically this function would send information or a built email
* to a mail server, however, since that was not in the design doc.
* a mockup was created to write what would go in the email to a
* text document.
*/
File.AppendAllText(Path.GetFullPath("Emails.txt"),
$"TO: {to}\n" +
$"FROM: {from}\n" +