示例#1
0
        public void InvalidDatabase()
        {
            var model = new PostgreSetting()
            {
                UserID   = "Test",
                Password = "******",
                Host     = "Test",
                Port     = 1,
                Database = ""
            };

            Assert.Null(model.GetBuilder);
        }
示例#2
0
        public void Valid()
        {
            var model = new PostgreSetting()
            {
                UserID   = "Test",
                Password = "******",
                Host     = "Test",
                Port     = 1,
                Database = "Test"
            };

            Assert.NotNull(model.GetBuilder);
            Assert.NotNull(model.GetBuilder.ConnectionString);
        }
示例#3
0
        public void InvalidObject()
        {
            var model = new PostgreSetting();

            Assert.Null(model.GetBuilder);
        }