Created
March 17, 2012 20:46
-
-
Save anonymous/2065097 to your computer and use it in GitHub Desktop.
View/Viewmodel in this case just for testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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