protected string GetScriptText() { ControllerBuilder.Commit(); // Kind of annoying... but eh WorkspaceBuilder.ProcessorSettings.NamingStrategy = NamingStrategy.Create(ConfigOptions.NameCasingConverter); var packageTester = WorkspaceBuilder.GetPackageTester(); var context = CreateContext(packageTester); var templateFactory = new ScriptTemplateFactory(ConfigOptions); string scriptText = templateFactory.CreateControllerTextTemplate(context).GetText(); return(scriptText); }
private void AssertScriptTextIs(string expected) { var packageTester = WorkspaceBuilder.GetPackageTester(); packageTester.AssertScriptText(expected); }
protected ReferenceTypeTester AssertThatTheReferenceTypeWithName(string name, int?typeArgCnt = null) { var packageTester = WorkspaceBuilder.GetPackageTester(); return(packageTester.TestReferenceTypeWithName(name, typeArgCnt)); }
protected EnumTester AssertThatTheDefaultEnumType() { var packageTester = WorkspaceBuilder.GetPackageTester(); return(packageTester.TestEnumWithName(TestTypeName)); }
private TypeCollectionTester CreateTester() { ControllerBuilder.Commit(); return(WorkspaceBuilder.GetPackageTester()); }