public void ValidateEmailStandardTest_WithStandardEmail_ReturnsProcessestandard() { var MessageBody = "Sender: [email protected] Subject: Hi there was staff attack halp pp asd asd as dasd pp"; var expectedResult = "processstandard"; var MessagingServiceViewModel = new MessagingServiceViewModel(); var actualResult = MessagingServiceViewModel.ValidateEmail(MessageBody); Assert.AreEqual(expectedResult, actualResult); }
public void ValidateEmailSIRTest_WithSIREmail_ReturnsProcesssir() { var MessageBody = "Sender: [email protected] Subject: SIR 12/12/12 Sport Centre Code: 20-123-40 Nature of Incident: Staff Attack Hi there was staff attack halp"; var expectedResult = "processsir"; var MessagingServiceViewModel = new MessagingServiceViewModel(); var actualResult = MessagingServiceViewModel.ValidateEmail(MessageBody); Assert.AreEqual(expectedResult, actualResult); }