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); }
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); }