aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zelent <zelent.marcin@protonmail.com>2017-12-12 14:24:47 +0100
committerMarcin Zelent <zelent.marcin@protonmail.com>2017-12-12 14:24:47 +0100
commite4e7dbf553bfa17a39830e67d14d3715946beab3 (patch)
treebf6c34aaeecb938f9ea11612d214a887ceb5d7ca /PollutometerWebApi.Tests/EmailSenderTests.cs
parent54d1019413958e0ba24b85007c1f5f97ca19a0b3 (diff)
Added unit tests and fixed some bugs.
Diffstat (limited to 'PollutometerWebApi.Tests/EmailSenderTests.cs')
-rw-r--r--PollutometerWebApi.Tests/EmailSenderTests.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/PollutometerWebApi.Tests/EmailSenderTests.cs b/PollutometerWebApi.Tests/EmailSenderTests.cs
new file mode 100644
index 0000000..427ec92
--- /dev/null
+++ b/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