public static void Equals_DifferentType_ReturnsFalse() { var recipient = new ServiceRecipient("ODS", null); var anonRecipient = new { recipient.OdsCode, }; var isEqual = recipient.Equals(anonRecipient); isEqual.Should().BeFalse(); }
public static void Equals_ReturnsExpectedResult(ServiceRecipient a, ServiceRecipient b, bool expectedResult) { var isEqual = a.Equals(b); isEqual.Should().Be(expectedResult); }