Ejemplo n.º 1
0
        public void Init()
        {
            // Terminal.Settings.DisplayLoggingMessageType = LogMessageType.None;

            _webServerUrl = Resources.GetServerAddress();
            _rootPath     = StaticFolder.RootPathOf(nameof(FluentTest));
        }
Ejemplo n.º 2
0
 protected override void OnSetUp()
 {
     Server
     .WithStaticFolder("/", StaticFolder.RootPathOf(nameof(DirectoryBrowserTest)), true, m => m
                       .WithDirectoryLister(DirectoryLister.Html)
                       .WithoutDefaultDocument());
 }
Ejemplo n.º 3
0
        public FolderWithSets(string rowFilter, string name, StaticFolder parent) : base(name, parent)
        {
            Connection con = ((Connection)Root);

            foreach (TestQuestionSetSet.QuestionSetsRow row in con.QuestionSets.Select(rowFilter))
            {
                new QuestionSet(row, this);
            }
        }
Ejemplo n.º 4
0
        public Test(TestQuestionSetSet.TestsRow value, StaticFolder parent) :
            base(value.Name,
                 new QuestionType(
                     new OptionalInteger(value.IsQuestionTypeIdNull() ? null : (Object)value.QuestionTypeId),
                     new OptionalInteger(value.IsQuestionSubtypeIdNull() ? null : (Object)value.QuestionSubtypeId)))
        {
            this.value = value;
            parent.AddNewChild(this);
            connection = (Connection)Root;

            DataRelation relation = connection.TestQuestionSetSet.Relations["QuestionSetsTestContents"];

            foreach (TestQuestionSetSet.TestContentsRow row in value.GetTestContentsRows())
            {
                new QuestionSet((TestQuestionSetSet.QuestionSetsRow)row.GetParentRow(relation), this);
            }
        }
Ejemplo n.º 5
0
 public void FluentWithStaticFolderArgumentException()
 {
     Assert.Throws <NullReferenceException>(() =>
                                            _nullWebServer.WithStaticFolder("/", StaticFolder.RootPathOf(nameof(FluentWithStaticFolderArgumentException)), true));
 }
 protected override void OnSetUp()
 {
     Server
     .WithStaticFolder("/", StaticFolder.RootPathOf(nameof(StaticFilesModuleTest)), true);
 }