public void TestAddUriStructureOkController() { ConfigJsonHandler configJsonHandler = new ConfigJsonHandler(); ISchemaConfigOperations schemaConfigOperations = new SchemaConfigMemoryOperations(configJsonHandler); SchemaController schemaController = new SchemaController(configJsonHandler, schemaConfigOperations); UriStructure newUriStructure = CreateUriStructureExample("newUriExample"); ResourcesClass newResourcesClass = CreateResourceClassExample("newUriExample", "rsp", "pipaon"); List <ResourcesClass> lista = new List <ResourcesClass>(); lista.Add(newResourcesClass); InfoUriStructure structure = new InfoUriStructure(); structure.ResourcesClass = lista; structure.UriStructure = newUriStructure; var result = schemaController.AddUriStructure(structure); if (result is BadRequestObjectResult) { Assert.True(false); } else { Assert.True(true); } }