コード例 #1
0
        protected override void Arrange()
        {
            base.Arrange();

            var section = new MockSectionWithMultipleChildCollections();

            BuildSection(section);
            ViewModel = SectionViewModel.CreateSection(Container, "name", section);
        }
コード例 #2
0
 protected virtual void BuildSection(MockSectionWithMultipleChildCollections section)
 {
     section.Children.Add(new TestHandlerData()
     {
         Name = "One"
     });
     section.Children.Add(new TestHandlerData()
     {
         Name = "Two"
     });
     section.Children.Add(new TestHandlerData()
     {
         Name = "Three"
     });
 }