SenseNet.ContentRepository.Tests.NodeTest2.Storage2_Milestone2_SetBinaryWithoutSave C# (CSharp) Метод

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

private Storage2_Milestone2_SetBinaryWithoutSave ( ) : void
Результат void
		public void Storage2_Milestone2_SetBinaryWithoutSave()
		{
			var xml = @"<?xml version=""1.0"" encoding=""utf-8""?>
<ContentType name=""Folder"" parentType=""GenericContent"" handler=""SenseNet.ContentRepository.Folder"" xmlns=""http://schemas.sensenet.com/SenseNet/ContentRepository/ContentTypeDefinition"">
	<DisplayName>Folder</DisplayName>
	<Description>Use folders to group information to one place</Description>
	<Icon>Folder</Icon>
	<Fields>
		<Field name=""Name"" type=""ShortText"">
			<Description>Name of the folder</Description>
		</Field>
		<Field name=""Path"" type=""ShortText"">
			<Description>Path of the folder</Description>
		</Field>
	</Fields>
</ContentType>";

			var node = Node.LoadNode("/Root/System/Schema/ContentTypes/GenericContent/Folder");
			var stream = Tools.GetStreamFromString(xml);
			node.GetBinary("Binary").SetStream(stream);
		}
		[TestMethod]