Skip to content

Instantly share code, notes, and snippets.

Created March 17, 2012 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2065097 to your computer and use it in GitHub Desktop.
Save anonymous/2065097 to your computer and use it in GitHub Desktop.
View/Viewmodel in this case just for testing
Module Module1
Sub Main()
Dim repository As New CarRepository
Dim cars = repository.GetCars().ToArray
Console.WriteLine("Set Car 1 model to Van?")
If Console.ReadLine = "y" Then
Console.WriteLine("Changing model to Van")
cars(0).Model = "Van"
End If
Console.WriteLine("Save?")
If Console.ReadLine = "y" Then
Console.WriteLine("Saving")
repository.SaveCars(cars)
End If
Console.ReadLine()
End Sub
End Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment