示例#1
0
        public static void AreSame(this WfClientAssigneeCollection expected, WfAssigneeCollection actual)
        {
            Assert.AreEqual(expected.Count, actual.Count);

            for (int i = 0; i < expected.Count; i++)
            {
                expected[i].AreSame(actual[i]);
            }
        }
示例#2
0
        public static void Output(this WfClientAssigneeCollection assignees, string title)
        {
            if (assignees.Count > 0)
            {
                Console.WriteLine(title);

                foreach (WfClientAssignee assignee in assignees)
                {
                    assignee.User.Output();
                }
            }
        }
        public void ServerToClient(WfAssigneeCollection server, WfClientAssigneeCollection client)
        {
            server.NullCheck("server");
            client.NullCheck("client");

            client.Clear();

            foreach (WfAssignee s in server)
            {
                WfClientAssignee c = null;

                WfClientAssigneeConverter.Instance.ServerToClient(s, ref c);

                client.Add(c);
            }
        }
        public void ClientToServer(WfClientAssigneeCollection client, WfAssigneeCollection server)
        {
            client.NullCheck("client");
            server.NullCheck("server");

            server.Clear();

            foreach (WfClientAssignee c in client)
            {
                WfAssignee s = null;

                WfClientAssigneeConverter.Instance.ClientToServer(c, ref s);

                server.Add(s);
            }
        }
        public void ServerToClient(WfAssigneeCollection server, WfClientAssigneeCollection client)
        {
            server.NullCheck("server");
            client.NullCheck("client");

            client.Clear();

            foreach (WfAssignee s in server)
            {
                WfClientAssignee c = null;

                WfClientAssigneeConverter.Instance.ServerToClient(s, ref c);

                client.Add(c);
            }
        }
        public void ClientToServer(WfClientAssigneeCollection client, WfAssigneeCollection server)
        {
            client.NullCheck("client");
            server.NullCheck("server");

            server.Clear();

            foreach (WfClientAssignee c in client)
            {
                WfAssignee s = null;

                WfClientAssigneeConverter.Instance.ClientToServer(c, ref s);

                server.Add(s);
            }
        }
        public static void AreSame(this WfClientAssigneeCollection expected, WfClientAssigneeCollection actual, bool checkUrl)
        {
            Assert.AreEqual(expected.Count, actual.Count);

            for (int i = 0; i < expected.Count; i++)
                expected[i].AreSame(actual[i], checkUrl);
        }