public async Task CheckInvalidNamespaces(string invalidNamespace)
        {
            // Create timestamp that will be used in algo name
            var algoCreationTimestamp = Helpers.GetTimestampIso8601();
            // Replace the default namespace with an invalid one
            var algoString = DummyAlgoString.Replace(GlobalConstants.AlgoDefaultNamespace, invalidNamespace);

            // Create algo object
            CreateAlgoDTO algoData = new CreateAlgoDTO()
            {
                Name        = $"{algoCreationTimestamp}{GlobalConstants.AutoTest}_AlgoName",
                Description = $"{algoCreationTimestamp}{GlobalConstants.AutoTest}_AlgoName - Description",
                Content     = Base64Helpers.EncodeToBase64(algoString)
            };

            // Create algo
            var createAlgoResponse = await Consumer.ExecuteRequest(ApiPaths.ALGO_STORE_CREATE_ALGO, Helpers.EmptyDictionary, JsonUtils.SerializeObject(algoData), Method.POST);

            var message = $"POST {ApiPaths.ALGO_STORE_CREATE_ALGO} returned status: {createAlgoResponse.Status} and response: {createAlgoResponse.ResponseJson}. Expected: {HttpStatusCode.BadRequest}";

            // Get user algos
            var userAlgos = (await GetUserAlgos()).Select(a => a.Name).ToList();

            // Assert algo is not created
            Assert.Multiple(() =>
            {
                Assert.That(createAlgoResponse.Status, Is.EqualTo(HttpStatusCode.BadRequest), message);
                Assert.That(createAlgoResponse.ResponseJson, Does.Contain("The provided namespace is not allowed").Or.Contains("Identifier expected"));
                Assert.That(userAlgos, Does.Not.Contain(algoData.Name));
            });
        }
        public async Task <AlgoDataDTO> CreateAlgo()
        {
            var           algoCreationTimestamp = Helpers.GetFullUtcTimestamp();
            CreateAlgoDTO metadata = new CreateAlgoDTO()
            {
                Name        = $"{GlobalConstants.AutoTest}_AlgoMetaDataName_{algoCreationTimestamp}",
                Description = $"{ GlobalConstants.AutoTest }_AlgoMetaDataName_{algoCreationTimestamp} - Description",
                Content     = Base64Helpers.EncodeToBase64(CSharpAlgoString)
            };

            var createAlgoResponse = await Consumer.ExecuteRequest(ApiPaths.ALGO_STORE_CREATE_ALGO, Helpers.EmptyDictionary, JsonUtils.SerializeObject(metadata), Method.POST);

            message = $"POST {ApiPaths.ALGO_STORE_CREATE_ALGO} returned status: {createAlgoResponse.Status} and response: {createAlgoResponse.ResponseJson}. Expected: {HttpStatusCode.OK}";
            Assert.That(createAlgoResponse.Status, Is.EqualTo(HttpStatusCode.OK), message);

            var algoData = JsonUtils.DeserializeJson <AlgoDataDTO>(createAlgoResponse.ResponseJson);

            // Add Algo to the list so that it can be deleted in the the TearDown
            algosList.Add(algoData);

            return(algoData);
        }