public void InvalidDatabase() { var model = new PostgreSetting() { UserID = "Test", Password = "******", Host = "Test", Port = 1, Database = "" }; Assert.Null(model.GetBuilder); }
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); }
public void InvalidObject() { var model = new PostgreSetting(); Assert.Null(model.GetBuilder); }