From 08e7a82cc7b237e550c0236bebd4f41c3c3f4acf Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Fri, 16 Mar 2018 21:40:28 +0100 Subject: Moved API to separate folder. --- .../PollutometerWebApi.Tests/EmailSenderTests.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pollutometer-api/PollutometerWebApi.Tests/EmailSenderTests.cs (limited to 'pollutometer-api/PollutometerWebApi.Tests/EmailSenderTests.cs') diff --git a/pollutometer-api/PollutometerWebApi.Tests/EmailSenderTests.cs b/pollutometer-api/PollutometerWebApi.Tests/EmailSenderTests.cs new file mode 100644 index 0000000..427ec92 --- /dev/null +++ b/pollutometer-api/PollutometerWebApi.Tests/EmailSenderTests.cs @@ -0,0 +1,21 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using PollutometerWebApi.Models; + +namespace PollutometerWebApi.Tests +{ + [TestClass()] + public class EmailSenderTests + { + [TestMethod()] + public void SendEmailTest() + { + var aqi = new Aqi + { + GasName = "SO", + Value = 69, + Level = "Moderate" + }; + EmailSender.SendEmail(aqi); + } + } +} \ No newline at end of file -- cgit v1.2.3