コード例 #1
0
ファイル: Fixture.cs プロジェクト: paulbatum/nhibernate
		private static Component GetInitializedComponent()
		{
			var component = new Component();
			var sub1 = new SubComponent();
			var sub2 = new SubComponent();
			component.Name = "Comp1";
			sub1.SubName = "Sub1";
			sub1.SubName1 = "Sub1x";

			sub2.SubName = "Sub2";
			sub2.SubName1 = "Sub2x";

			sub1.Nested = sub2;

			component.SubComponent = sub1;
			return component;
		}
コード例 #2
0
ファイル: Fixture.cs プロジェクト: jrauber/GH1429
        private static Component GetInitializedComponent()
        {
            var component = new Component();
            var sub1      = new SubComponent();
            var sub2      = new SubComponent();

            component.Name = "Comp1";
            sub1.SubName   = "Sub1";
            sub1.SubName1  = "Sub1x";

            sub2.SubName  = "Sub2";
            sub2.SubName1 = "Sub2x";

            sub1.Nested = sub2;

            component.SubComponent = sub1;
            return(component);
        }