aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <marcin@zelent.net>2017-02-04 17:46:03 +0100
committermarcinzelent <marcin@zelent.net>2017-02-04 17:46:03 +0100
commit1d65134c461d6648b5556847565d37f898db5ad0 (patch)
treed9ecabc0fb0d2e79ac57f176e152dfcb5802178c /France_Vacances/FVUnitTest/BookingTest.cs
parentffbe744e0807d0d70d31220fece2a034e56509cf (diff)
Repo copy.
Diffstat (limited to 'France_Vacances/FVUnitTest/BookingTest.cs')
-rw-r--r--France_Vacances/FVUnitTest/BookingTest.cs38
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);
+ }
+ }
+}