public void ConfigurationServiceValidGetTest(Parameters parameter, Valid inputType) { var handler = new ConfigurationServiceManager(); var request = new Dictionary <string, string>(DefaultParameters); request[parameter.ToString().ToLower()] = ValidGetMapping[inputType]; request["body"] = BodyJson.Replace("db01", Utils.RandomString(20)); //Create configuration service CreateConfigurationService(request["service"], request["id"], request["body"]); //Get and verify configuration service GetAndVerifyConfigurationService(request["service"], request["id"], request["body"]); }
public void CreateAndThenUpdateConfigurationServiceTest() { var handler = new ConfigurationServiceManager(); var request = new Dictionary <string, string>(DefaultParameters); request["body"] = BodyJson.Replace("db01", Utils.RandomString(20)); request["service"] = "create/update"; //Create configuration service CreateConfigurationService(request["service"], request["id"], request["body"]); //Update configuration service with new body json request["body"] = BodyJson.Replace("db01", Utils.RandomString(20)); CreateConfigurationService(request["service"], request["id"], request["body"]); //Get and verify configuration service GetAndVerifyConfigurationService(request["service"], request["id"], request["body"]); }