Unit testing data operations with Access database in VB.NET

DescriptionThis code sample will provide a method to unit test backend database operations, adding records, updating records and removal of records using ms-access database table.I’ve been on various developer forums where developers have issues with their data operations and in

 
 
 
 
 
(0)
172 times
Add to favorites
11/23/2017
E-mail Twitter del.icio.us Digg Facebook
Public Class Customer
    Public Property Identifier As Integer
    Public Property CompanyName As String
    Public Property ContactName As String
    Public Property ContactTitle As String
    Public Property Address As String
    Public Property City As String
    Public Property PostalCode As String
    Public Property Country As String
    Public Property Phone As String

    Public Overrides Function ToString() As String
        Return $"{CompanyName}, {ContactName}, {ContactTitle}, {Country}, {Phone}"
    End Function
End Class