public bool VerifyInDatabase(CSUsernameFileModel row) { CSUsernameFileModel csUser = database.QuerySingleRow <CSUsernameFileModel, ModelAttribute>($"select * from {CSAgentModel.TableName} where USERNAME = '******'", "AlternateName"); AssertModels.AreEqual(row, csUser); return(true); }
public static CSUsernameRow GenerateRandomRow() { CSUsernameFileModel data = StrongRandom.GenerateRandom <CSUsernameFileModel>(); CSUsernameRow output = new CSUsernameRow() { RowData = data }; return(output); }
public void SetRowData(object data) { if ((data is CSUsernameFileModel row)) { RowData = row; }