Ejemplo n.º 1
0
        public void All_metabase_properties_can_be_null_but_ID()
        {
            var metabaseSession = new MetabaseSessionConfiguration(null, ID_SAMPLE, null, null);

            Assert.IsNull(metabaseSession.Name, "Unexpected metabase name was found.");
            Assert.AreEqual(ID_SAMPLE, metabaseSession.ID, "Unexpected metabase ID was found.");
            Assert.IsNull(metabaseSession.Type, "Unexpected metabase type was found.");
            Assert.IsNull(metabaseSession.UserType, "Unexpected metabase user type was found.");
        }
Ejemplo n.º 2
0
        public void Should_be_possible_to_represent_metabase_session()
        {
            var metabaseSession =
                new MetabaseSessionConfiguration(
                    NAME_SAMPLE, ID_SAMPLE, TYPE_SAMPLE, USER_TYPE_SAMPLE);

            Assert.AreEqual(NAME_SAMPLE, metabaseSession.Name, "Unexpected metabase name was found.");
            Assert.AreEqual(ID_SAMPLE, metabaseSession.ID, "Unexpected metabase ID was found.");
            Assert.AreEqual(TYPE_SAMPLE, metabaseSession.Type, "Unexpected metabase type was found.");
            Assert.AreEqual(USER_TYPE_SAMPLE, metabaseSession.UserType, "Unexpected metabase user type was found.");
        }