public void SutDoesNotEqualAnonymousObject() { var sut = new InterestOnlyOfferMortgageApplicationProcessor(); var anonymous = new object(); var actual = sut.Equals(anonymous); Assert.False(actual); }
public void SutDoesNotEqualOtherWithDifferentDependencies() { var sut = new InterestOnlyOfferMortgageApplicationProcessor { OfferService = new Mock <IOfferService>().Object }; var other = new InterestOnlyOfferMortgageApplicationProcessor { OfferService = new Mock <IOfferService>().Object }; var actual = sut.Equals(other); Assert.False(actual); }
public void SutEqualsOtherWithSameDependencies() { var sut = new InterestOnlyOfferMortgageApplicationProcessor { OfferService = new Mock <IOfferService>().Object }; var other = new InterestOnlyOfferMortgageApplicationProcessor { OfferService = sut.OfferService }; var actual = sut.Equals(other); Assert.True(actual); }