Exemplo n.º 1
0
        [Test] public void CreateMyselfFindItUsingOtherNameButSamePersonalAccount()
        {
            IResource account = _contactManager.FindOrCreateEmailAccount("*****@*****.**");

            account.SetProp(_contactManager.Props.PersonalAccount, true);
            IContact myself      = _contactManager.FindOrCreateMySelfContact("*****@*****.**", null, "Michael", null, "Gerasimov", null);
            IContact otherMyself = _contactManager.FindOrCreateContact("*****@*****.**", "LloiX");

            Assert.AreEqual(myself.Resource.Id, otherMyself.Resource.Id);
        }