public ActionResult FireEmployee(int id) { VendorEmployeeModel vm = VendorEmployeeManager.GetVendorEmployee(id); EmployeeVendorViewModel evvm = new EmployeeVendorViewModel(); evvm.User = UserManager.GetUser(vm.UserID); evvm.Vendor = VendorManager.GetVendor(vm.VendorID); return(View(evvm)); }
public void Update() { VendorEmployeeModel vendorEmployee = new VendorEmployeeModel { ID = 2, VendorID = 2, UserID = 2, }; VendorEmployeeManager.Update(vendorEmployee); VendorEmployeeModel newVendorEmployee = VendorEmployeeManager.GetVendorEmployee(2); Assert.AreEqual(vendorEmployee.ID, newVendorEmployee.ID); }