Inheritance: ApiController
        public void TestSubject()
        {
            Email email = new Email() { To = "rehanav@@nvisionit.co.za", Subject = "", DeliveryType = "Email", Message = "Test" };

            SubmitController controller = new SubmitController();
            HttpResponseMessage message = ValidateEmail.ValidateModel(email);

            Assert.IsTrue(message.StatusCode == System.Net.HttpStatusCode.BadRequest);
        }
        public void Post()
        {
            SubmitController submit = new SubmitController();
            var response = submit.Post(
                    new Email.Email()
                    {
                        DeliveryType = "Email",
                        Message = "Unit Testing Successful",
                        Subject = "Unit Test",
                        To = "*****@*****.**"
                    }
                );

            Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
        }