protected HTMLBindingBase(IWindowLessHTMLEngineProvider testEnvironment, ITestOutputHelper output) : base(testEnvironment, output) { _ICommand = Substitute.For<ICommand>(); _DataContext = new Person(_ICommand) { Name = "O Monstro", LastName = "Desmaisons", Local = new Local() { City = "Florianopolis", Region = "SC" }, PersonalState = PersonalState.Married }; _DataContext.Skills.Add(new Skill() { Name = "Langage", Type = "French" }); _DataContext.Skills.Add(new Skill() { Name = "Info", Type = "C++" }); }
public MainWindow() { InitializeComponent(); var datacontext = new Person() { Name = "O Monstro", LastName = "Desmaisons", Local = new Local() { City = "Florianopolis", Region = "SC" }, PersonalState = PersonalState.Married }; var firstSkill = new Skill() { Name = "Langage", Type = "French" }; datacontext.Skills.Add(firstSkill); datacontext.Skills.Add(new Skill() { Name = "Info", Type = "C++" }); DataContext = datacontext; }
private void Window_Loaded(object sender, RoutedEventArgs e) { var datacontext = new Person() { Name = "O Monstro", LastName = "Desmaisons", Local = new Local() { City = "Florianopolis", Region = "SC" }, PersonalState = PersonalState.Married }; _FirstSkill = new Skill() { Name = "Langage", Type = "French" }; datacontext.Skills.Add(_FirstSkill); datacontext.Skills.Add(new Skill() { Name = "Info", Type = "C++" }); Window w = sender as Window; w.DataContext = datacontext; _Person = datacontext; }