コード例 #1
0
        public ValidationTest()
        {
            mockContext = new Mock <Context>();
            context     = mockContext.Object;

            form         = Forms.Create(mockContext);
            fields       = Fields.Create(mockContext, form);
            validataions = Validations.Create(mockContext, form, fields);

            Base.CalcVirtualAttributes(context);
        }
コード例 #2
0
 public CommonFixtureCreator(Mock <Context> _mockContext)
 {
     //mockContext = new Mock<Context>();
     mockContext = _mockContext;
     context     = mockContext.Object;
     Forms.Create(mockContext);
     Parentings.Create(mockContext);
     form     = Form.Load(context, 2); // child
     form1    = Form.Load(context, 1); // parent
     sections = Sections.Create(mockContext, form);
     fields   = Fields.Create(mockContext, form, sections[0]);
     TestBase.CalcVirtualAttributes(context);
 }