public void TestCreateManafacturerSubmit()
 {
     var adminController = new AdminController(_manafacturerRepository, _productRepository, _reviewRepository, _submitterRepository);
     var result = (RedirectResult) adminController.AddNewManafacturer(new ManafacturerViewModel
     {
         ManafacturerName = "TestManafacturer 6",
         ManafacturerWebsite = "www.testco6.co.uk"
     });
     if (result != null)
     {
         Assert.AreEqual("/Admin/Index", result.Url);
     }
 }
        public void TestCreateManafacturerView()
        {
            var adminController = new AdminController(_manafacturerRepository, _productRepository, _reviewRepository, _submitterRepository);
            var result = adminController.AddNewManafacturer() as ViewResult;
            if (result != null)
            {
                var createManafacturerResult = (ManafacturerViewModel)result.ViewData.Model;
                Assert.AreEqual(0, createManafacturerResult.ManafacturerId);
                Assert.IsNullOrEmpty(createManafacturerResult.ManafacturerName);
                Assert.IsNullOrEmpty(createManafacturerResult.ManafacturerWebsite);

            }
        }