diff options
Diffstat (limited to 'France_Vacances/FVUnitTest/BookingTest.cs')
-rw-r--r-- | France_Vacances/FVUnitTest/BookingTest.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/France_Vacances/FVUnitTest/BookingTest.cs b/France_Vacances/FVUnitTest/BookingTest.cs new file mode 100644 index 0000000..924922b --- /dev/null +++ b/France_Vacances/FVUnitTest/BookingTest.cs @@ -0,0 +1,38 @@ +using System; +using France_Vacances.Methods; +using France_Vacances.Model; +using France_Vacances.View; +using France_Vacances.ViewModel; +using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; + +namespace FVUnitTest +{ + [TestClass] + public class BookingTest + { + private BookingViewModel bookingViewModel = new BookingViewModel(); + private SearchViewModel searchViewModel = new SearchViewModel(); + + + public RelayCommand TestCommand + { + get { return searchViewModel.FindAccommodationModelsCommand; } + set { searchViewModel.FindAccommodationModelsCommand = value; } + } + + + public BookingTest() + { + searchViewModel.SearchedAccommodationModel = new AccommodationModel + { + Region = "Rhone-Alpes" + }; + } + [TestMethod] + public void Test() + { + var results = searchViewModel.ResultsCollection; + Assert.IsNotNull(results); + } + } +} |