コード例 #1
0
        public void ContactIsCreatedByConnectingUser()
        {
            Contact contactInserted = CreateTestContact();

            contactInserted.Insert();

            Contact contactRead = Contact.Read(_dynamicsCrmConnection, contactInserted.Id);

            contactInserted.Delete();

            SystemUser user = SystemUser.Read(_dynamicsCrmConnection, contactRead.modifiedbyGuid.Value);

            Assert.AreEqual("KAD\\" + _urlLogin.Username, user.domainname);
        }