public void AddAADetailsToDB(DetailAdderRequest request)
        {
            var DBinserter = new DatabaseInserter();

            int currentId = DBinserter.InsertData("email, firstname, surname, phone, previous_level, comments", $"{request.Contact.EmailAddress}', '{request.Contact.FirstName}', '{request.Contact.Surname}', '{request.Contact.ContactNumber}', '{request.Contact.Qualification}', '{request.Contact.Comment}", "Contact", "webform");

            DBinserter.InsertCheckboxData(request, currentId);
        }
Exemple #2
0
 public DatabaseInserterTests(TestWebApplicationFactory <Startup> factory) : base(factory)
 {
     _inserter = Factory.Services.GetService <DatabaseInserter <Submission> >();
 }