public void AddUserTest() { Mock <ProjectManagerDBEntities> mockContext = MockUserList(); var projectManagerBL = new ProjectManagerBL(mockContext.Object); User model = new User() { userId = 1, firstName = "gegerg", lastName = "asdqad", employeeId = 565 }; int result = projectManagerBL.AddUsers(model); Assert.IsTrue(result == 0); }
public void Post([FromBody] User item) { pbl.AddUsers(item); }