Exemple #1
0
        public void CanSerializeWithEnums()
        {
            var xmlSerializer = new XmlSerializer(typeof(WorkspaceCreationRequest));

            var stringBuilder = new StringBuilder();

            using (var stringWriter = new StringWriter(stringBuilder))
            {
                var workspaceCreationRequest = new WorkspaceCreationRequest();
                workspaceCreationRequest.Role = PexaRole.Mortgagee_on_Title;
                xmlSerializer.Serialize(stringWriter, workspaceCreationRequest);
            }

            // Assert.Equal(_sampleXmlWithEnums, stringBuilder.ToString());
        }
 public WorkspaceCreationRequestCommand(WorkspaceCreationRequest workspaceCreationRequest, string bearerToken)
 {
     WorkspaceCreationRequest = workspaceCreationRequest;
     BearerToken = bearerToken;
 }