SenseNet.ContentRepository.Tests.AutoNamingTests.InstallContentTypes C# (CSharp) Метод

InstallContentTypes() приватный Метод

private InstallContentTypes ( Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext ) : void
testContext Microsoft.VisualStudio.TestTools.UnitTesting.TestContext
Результат void
        public static void InstallContentTypes(TestContext testContext)
        {
            var ctdformat = @"<?xml version=""1.0"" encoding=""utf-8""?>
                <ContentType name=""{0}"" parentType=""Car"" handler=""SenseNet.ContentRepository.GenericContent""
                             xmlns=""http://schemas.sensenet.com/SenseNet/ContentRepository/ContentTypeDefinition"">
                  <AllowIncrementalNaming>{1}</AllowIncrementalNaming>
                </ContentType>";
            var ctd1 = String.Format(ctdformat, ContentType_Car1Name, "true");
            var ctd2 = String.Format(ctdformat, ContentType_Car2Name, "false");
            ContentTypeInstaller.InstallContentType(ctd1, ctd2);
            ContentType_Car1 = ContentType.GetByName(ContentType_Car1Name);
            ContentType_Car2 = ContentType.GetByName(ContentType_Car2Name);
        }
        [ClassCleanup]