private static void AssertEqual(ContactCategoryDto expected, ContactCategoryDto actual) { Assert.AreEqual(expected.Uid, actual.Uid, "Different uid."); Assert.AreEqual(expected.Type, actual.Type, "Different type."); Assert.AreEqual(expected.Name, actual.Name, "Different name."); }
public ContactCategoryDto GetContactCategory(string type, string name) { ContactCategoryDto dto = new ContactCategoryDto(); dto.Type = type; dto.Name = this.TestUid + name; return dto; }