コード例 #1
0
        public bool VerifyInDatabase(CSUsernameFileModel row)
        {
            CSUsernameFileModel csUser = database.QuerySingleRow <CSUsernameFileModel, ModelAttribute>($"select * from {CSAgentModel.TableName} where USERNAME = '******'", "AlternateName");

            AssertModels.AreEqual(row, csUser);
            return(true);
        }
コード例 #2
0
        public static CSUsernameRow GenerateRandomRow()
        {
            CSUsernameFileModel data   = StrongRandom.GenerateRandom <CSUsernameFileModel>();
            CSUsernameRow       output = new CSUsernameRow()
            {
                RowData = data
            };

            return(output);
        }
コード例 #3
0
 public void SetRowData(object data)
 {
     if ((data is CSUsernameFileModel row))
     {
         RowData = row;
     }