public void TestEditManafacturerSave()
 {
     var adminController = new AdminController(_manafacturerRepository, _productRepository, _reviewRepository, _submitterRepository);
     var result = (RedirectResult)adminController.EditManafacturer(new ManafacturerViewModel
     {
         ManafacturerId = 1,
         ManafacturerName = "TestManafacturer 1 edit",
         ManafacturerWebsite = "www.testco1.co.uk_edit"
     });
     if (result != null)
     {
         Assert.AreEqual("/Admin/ViewManafacturer?id=1", result.Url);
     }
 }
 public void TestEditManafacturer()
 {
     var adminController = new AdminController(_manafacturerRepository, _productRepository, _reviewRepository, _submitterRepository);
     var result = adminController.EditManafacturer(1) as ViewResult;
     if (result != null)
     {
         var editProductResult = (ManafacturerViewModel)result.ViewData.Model;
         Assert.AreEqual("TestManafacturer 1", editProductResult.ManafacturerName);
         Assert.AreEqual("www.testco1.co.uk", editProductResult.ManafacturerWebsite);
     }
 }