public void Constructor_CarIsNull_ThrowException()
        {
            ICarDataService carDataService = new DesignCarDataService();
            //Parent entities

            Car car           = null;
            var viewModelEdit = new CarEditViewModel(car, carDataService);
        }
        public void Car_New_CanSaveCarIsTrue()
        {
            ICarDataService carDataService = new DesignCarDataService();
            //Parent entities
            var viewModelEdit = new CarEditViewModel(carDataService);

            Assert.IsTrue(viewModelEdit.CanSaveCar);
        }
Esempio n. 3
0
        public DesignServiceProvider()
        {
            //PageConductor = new DesignPageConductor(); //Uncomment if you are using DesignPageConductor

            //Example
            //ModelTypeDataService = new DesignModelTypeDataService();

            CarDataService         = new DesignCarDataService();
            UserProfileDataService = new DesignUserProfileDataService();
        }