예제 #1
0
        public void GetDefinition()
        {
            var obj = new SchemaDefinition {
                Name = "sch1"
            };

            _ops.Setup(c => c.Definition("conn", _loggingService))
            .Returns(obj);

            var controller = new SchemaController(_ops.Object, _loggingService);

            var results = controller.Get("conn");

            Assert.AreEqual("sch1", obj.Name);
        }