コード例 #1
0
 public void PersistenceConfiguration_Provider_Throws_When_Invalid_Prefix()
 {
     var config = new PersistenceTypeLoaderElement()
         {
             Key = "blah-testing"
         };
     Assert.AreEqual("", config.Alias);
 }
コード例 #2
0
        public void PersistenceConfiguration_Provider_Throws_When_Invalid_Key_Name()
        {
            var config = new PersistenceTypeLoaderElement()
                {
                    Key = "rw-1"
                };

            Assert.AreEqual("", config.Alias);
        }
コード例 #3
0
        public void PersistenceConfiguration_Provider_Correctly_Prefixed_And_Alias_Set()
        {
            var config = new PersistenceTypeLoaderElement()
                {
                    Key = "rw-testing"
                };

            Assert.AreEqual("testing", config.Alias);
        }
コード例 #4
0
        public void PersistenceConfiguration_Provider_Throws_When_Invalid_Key_Name()
        {
            var config = new PersistenceTypeLoaderElement()
            {
                Key = "rw-1"
            };

            Assert.AreEqual("", config.Alias);
        }
コード例 #5
0
        public void PersistenceConfiguration_Provider_Throws_When_Invalid_Prefix()
        {
            var config = new PersistenceTypeLoaderElement()
            {
                Key = "blah-testing"
            };

            Assert.AreEqual("", config.Alias);
        }
コード例 #6
0
        public void PersistenceConfiguration_Provider_Correctly_Prefixed_And_Alias_Set()
        {
            var config = new PersistenceTypeLoaderElement()
            {
                Key = "rw-testing"
            };

            Assert.AreEqual("testing", config.Alias);
        }