public Schema CreateProtoSchema(string schemaId) { var createProtoSchemaSampleObject = new CreateProtoSchemaSample(); var schema = createProtoSchemaSampleObject.CreateProtoSchema(ProjectId, schemaId, ProtoSchemaFile); TempSchemaIds.Add(schemaId); return(schema); }
public void CreateProtoSchema() { string schemaId = "testProtoSchemaForSchemaCreation" + _pubsubFixture.RandomName(); var newlyCreatedSchema = _createProtoSchemaSample.CreateProtoSchema(_pubsubFixture.ProjectId, schemaId, _pubsubFixture.ProtoSchemaFile); _pubsubFixture.TempSchemaIds.Add(schemaId); var schema = _pubsubFixture.GetSchema(schemaId); Assert.Equal(newlyCreatedSchema, schema); }