public static BCFv2Container CreateContainer() { var container = new BCFv2Container(); container.Topics.Add(CreateTopic()); container.FileAttachments.Add("Estructura.ifc", TestCaseResourceFactory.GetIfcFile(IfcFiles.Estructura)); return(container); }
public void CheckIfFileDataIsEqual_IfcPile() { var dataExpected = TestCaseResourceFactory.GetIfcFile(IfcFiles.IfcPile); using (var memStream = new MemoryStream()) { CreatedArchive.Entries.FirstOrDefault(curr => curr.FullName == "IfcPile_01.ifc").Open().CopyTo(memStream); var dataActual = memStream.ToArray(); Assert.True(dataExpected.SequenceEqual(dataActual)); } }
public static BCFv21Container CreateContainer() { var container = new BCFv21Container(); // Set the project container.BcfProject = new ProjectExtension(); container.BcfProject.Project = new Project(); container.BcfProject.Project.Name = "BCF API Implementation"; container.BcfProject.Project.ProjectId = "F338B6F0-A93E-40FF-A4D6-6117CD21EC2A"; // Set extensions container.ProjectExtensions = CreateExtensions(); // Set Topics container.Topics.Add(CreateSimpleTopicToActAsReference()); container.Topics.Add(CreateTopic()); container.FileAttachments.Add("IfcPile_01.ifc", TestCaseResourceFactory.GetIfcFile(IfcFiles.IfcPile)); container.FileAttachments.Add("markup.xsd", TestCaseResourceFactory.GetFileAttachment(FileAttachments.MarkupSchemaV21)); return(container); }