Пример #1
0
        public void WhenConnectionExists_ThenReturnSetting()
        {
            var sut = new ConnectionSettingsProvider();

            var result = sut.GetConnectionSettings("MyDb");

            Assert.That(result.ConnectionString, Is.EqualTo("Data Source=.;Initial Catalog=MyDb;Integrated Security=True"));
        }
Пример #2
0
 public void WhenKeyIsNull_ThenThrowException()
 {
     Assert.Throws <ArgumentException>(() => _sut.GetConnectionSettings(null));
 }