Esempio n. 1
0
        public void UpdateSchema()
        {
            _schemaDto.Name = "jiujiu";
            var response = new MockClient().UpdateSchema(_schemaDto);

            Assert.True(response);
        }
Esempio n. 2
0
        public void GetAfterUpdatedSchema()
        {
            var response = new MockClient().GetSchema(_testSchemaCode);

            Assert.NotNull(response);
            Assert.Equal(_testSchemaCode, response.SchemaCode);
            Assert.Equal("jiujiu", response.Name);
        }
Esempio n. 3
0
        public void GetSchema()
        {
            var response = new MockClient().GetSchema(_testSchemaCode);

            //临时记录
            _schemaDto = response;
            Assert.NotNull(response);
            Assert.Equal(_testSchemaCode, response.SchemaCode);
            Assert.Equal("哈哈", response.Name);
        }
Esempio n. 4
0
        public void AddSchema()
        {
            var response = new MockClient().AddSchema(new SchemaDTO
            {
                SchemaCode = _testSchemaCode,
                Name       = "哈哈"
            });

            Assert.True(response);
        }
Esempio n. 5
0
        public void RemoveSchema()
        {
            var response = new MockClient().RemoveSchema(_testSchemaCode);

            Assert.True(response);
        }