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); }
public DesignServiceProvider() { //PageConductor = new DesignPageConductor(); //Uncomment if you are using DesignPageConductor //Example //ModelTypeDataService = new DesignModelTypeDataService(); CarDataService = new DesignCarDataService(); UserProfileDataService = new DesignUserProfileDataService(); }