Beispiel #1
0
        public void AccountToPartial()
        {
            Account account = new Account();
            account.Id = RandomGuid();
            account.Alias = RandomGuidString();
            account.CreatedDate = RandomDate();
            account.User = GetFullUser();
            
            AccountToPartialAccountMap map = new AccountToPartialAccountMap();
            PartialAccount partial = map.Create(account);

            Assert.IsNotNull(partial);
            Assert.AreEqual(account.Alias, partial.Alias);
            AssertEqual(account.User, partial.User);
        }
Beispiel #2
0
        public void AccountToPartial()
        {
            Account account = new Account();

            account.Id          = RandomGuid();
            account.Alias       = RandomGuidString();
            account.CreatedDate = RandomDate();
            account.User        = GetFullUser();

            AccountToPartialAccountMap map     = new AccountToPartialAccountMap();
            PartialAccount             partial = map.Create(account);

            Assert.IsNotNull(partial);
            Assert.AreEqual(account.Alias, partial.Alias);
            AssertEqual(account.User, partial.User);
        }