public void insertCommonSettinginfo_Test_바른_값을_주고_바른_쿼리를_반환하는지()
 {
     //Arrange
     MockRepository mocks = new MockRepository();
     CommonSettinginfo si = new CommonSettinginfo();
     si.CommonSettinginfo_DB = new CommonSettinginfo_From_DB();
     string ExpectedJson = JsonConvert.SerializeObject(si.CommonSettinginfo_DB);
     string ExpectedString = string.Format("insert into commonSetting(jsonSettingInfoData) values('{0}')", ExpectedJson);
     SQLDataQueryRepository sqlQuery = new SQLDataQueryRepository();
     //Act
     string actualQuery = sqlQuery.insertSettingInfo(si);
     //Assert
     Assert.AreEqual(ExpectedString,actualQuery);
 }
        public void insertCommonSettinginfo_Test_Null_값을_주고_NullReferenceException이_발생하는지()
        {
            //Arrange

            bool isNullReferenceException = false;
            CommonSettinginfo si = null;
            SQLDataQueryRepository sqlQuery = new SQLDataQueryRepository();
            //Act
            try
            {
                string actualQuery = sqlQuery.insertSettingInfo(si);
            }
            catch (NullReferenceException)
            {
                isNullReferenceException = true;
            }
            //Assert
            Assert.IsTrue(isNullReferenceException);
        }