public async void CanExportRedcapVersion_VersionNumber_Shouldontain_Number()
        {
            // Arrange
            // Assume current redcap version is 8+
            var currentRedcapVersion = "8";

            // Act
            var result = await _redcapApi.ExportRedcapVersionAsync(_token, Content.Version);

            // Assert
            // Any version 8.XX will do
            Assert.Contains(currentRedcapVersion, result);
        }
Example #2
0
        public void CanExportRedcapVersion_VersionNumber_Shouldontain_Number()
        {
            // Arrange
            // Assume current redcap version is 8.5.5
            var currentRedcapVersion = "8.5.5";
            var apiKey      = _token;
            var apiEndpoint = _uri;

            // Act
            var redcap_api = new RedcapApi(apiKey, apiEndpoint);
            var result     = redcap_api.ExportRedcapVersionAsync(ReturnFormat.json, RedcapDataType.flat).Result;
            var data       = result;

            // Assert
            Assert.Equal(currentRedcapVersion, data);
        }