public void ConstructorNameNullError()
        {
            AuthorityDataType authorityDataType;

            authorityDataType = new AuthorityDataType(0,
                                                      null,
                                                      DataContextTest.GetOneDataContext());
        }
        public void ConstructorNameEmptyError()
        {
            AuthorityDataType authorityDataType;

            authorityDataType = new AuthorityDataType(0,
                                                      " ",
                                                      DataContextTest.GetOneDataContext());
        }
        public void Constructor()
        {
            AuthorityDataType authorityDataType;

            authorityDataType = new AuthorityDataType(0,
                                                      "TestName",
                                                      DataContextTest.GetOneDataContext());
            Assert.IsNotNull(authorityDataType);
        }
 private AuthorityDataType GetAuthorityDataType(Boolean refresh)
 {
     if (_authorityDataType.IsNull() || refresh)
     {
         _authorityDataType = new AuthorityDataType(0,
                                                    "TestName",
                                                    DataContextTest.GetOneDataContext());
     }
     return(_authorityDataType);
 }
        public void ConstructorDataContextNullError()
        {
            AuthorityDataType authorityDataType;
            IDataContext      dataContext;

            dataContext       = null;
            authorityDataType = new AuthorityDataType(0,
                                                      "TestName",
                                                      dataContext);
        }
 public AuthorityDataTypeTest()
 {
     _authorityDataType = null;
 }