aboutsummaryrefslogtreecommitdiff
blob: 924922bafd297b5809056a2fcf5d2903e57ebc12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
        }
    }
}