Exemplo n.º 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);
        }
Exemplo n.º 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);
        }