public async void CanExportUsers_AllUsers_ShouldReturn_username() { // Arrange var username = "******"; // Act var result = await _redcapApi.ExportUsersAsync(_token, ReturnFormat.json); // Assert Assert.Contains(username, result); }
public void CanExportUsers_AllUsers_ShouldReturn_username() { // Arrange var apiKey = _token; var apiEndpoint = _uri; var username = "******"; // Act var redcap_api = new RedcapApi(apiKey, apiEndpoint); var result = redcap_api.ExportUsersAsync(ReturnFormat.json, OnErrorFormat.json).Result; var data = result; // Assert Assert.Contains(username, data); }