Пример #1
0
        override public void Execute()
        {
            Signer signer = SignerBuilder.NewSignerWithEmail(email1)
                            .WithFirstName("Patty")
                            .WithLastName("Galant")
                            .Build();

            HostUid       = signer.Id;
            StartDateTime = DateTime.UtcNow.AddDays(7);

            VirtualRoom VirtualRoom = VirtualRoomBuilder.NewVirtualRoom()
                                      .WithHostUid(HostUid)
                                      .WithVideo(true)
                                      .WithVideoRecording(true)
                                      .WithStartDateTime(StartDateTime)
                                      .Build();

            DocumentPackage superDuperPackage = PackageBuilder.NewPackageNamed(PackageName)
                                                .DescribedAs("Description")
                                                .WithSigner(signer)
                                                .WithDocument(DocumentBuilder.NewDocumentNamed("Document")
                                                              .WithId("DocumentId")
                                                              .FromStream(fileStream1, DocumentType.PDF))
                                                .Build();

            packageId        = ossClient.CreatePackageOneStep(superDuperPackage);
            retrievedPackage = ossClient.GetPackage(packageId);

            OssClient.VirtualRoomService.SetVirtualRoom(packageId, VirtualRoom);
            VirtualRoomAfterUpdate = OssClient.VirtualRoomService.GetVirtualRoom(packageId);
        }
        public void BuildTest()
        {
            DateTime           startDateTime = DateTime.Now;
            VirtualRoomBuilder builder       = VirtualRoomBuilder.NewVirtualRoom()
                                               .WithVideo(true)
                                               .WithVideoRecording(true)
                                               .WithStartDateTime(startDateTime)
                                               .WithHostUid("hostUid");

            VirtualRoom result = builder.Build();

            Assert.IsNotNull(result);
            Assert.AreEqual(result.Video, true);
            Assert.AreEqual(result.VideoRecording, true);
            Assert.AreEqual(result.StartDatetime, startDateTime);
            Assert.AreEqual(result.HostUid, "hostUid");
        }