public void TestGetUserId() { IChatterSoapService service = new ChatterService.ChatterSoapService(_url); service.Login(_username, _password, _token); string id = service.GetUserId(_employeeId); Assert.AreEqual(_userId, id); }
public void TestGetUserIdByEmptyEmployeeId() { IChatterSoapService service = new ChatterService.ChatterSoapService(_url); try { string id = service.GetUserId(""); Assert.Fail("GetUserId method should throw and exception Employee ID is empty string"); } catch (Exception ex) { Assert.AreEqual("Employee Id is required", ex.Message); } }
public void TestGetUserIWithNullEmployeeId() { IChatterSoapService service = new ChatterService.ChatterSoapService(_url); try { string id = service.GetUserId(null); Assert.Fail("GetUserId method should throw and exception Employee ID is null"); } catch (Exception ex) { Assert.AreEqual("Employee Id is required", ex.Message); } }