public void Init() { // Terminal.Settings.DisplayLoggingMessageType = LogMessageType.None; _webServerUrl = Resources.GetServerAddress(); _rootPath = StaticFolder.RootPathOf(nameof(FluentTest)); }
protected override void OnSetUp() { Server .WithStaticFolder("/", StaticFolder.RootPathOf(nameof(DirectoryBrowserTest)), true, m => m .WithDirectoryLister(DirectoryLister.Html) .WithoutDefaultDocument()); }
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); } }
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); } }
public void FluentWithStaticFolderArgumentException() { Assert.Throws <NullReferenceException>(() => _nullWebServer.WithStaticFolder("/", StaticFolder.RootPathOf(nameof(FluentWithStaticFolderArgumentException)), true)); }
protected override void OnSetUp() { Server .WithStaticFolder("/", StaticFolder.RootPathOf(nameof(StaticFilesModuleTest)), true); }