public void ComputeReceiveLocationNameViaReceiveLocation() { const string name = "Receive Location Name"; var receiveLocationMock = new Mock <IReceiveLocation <object> >(); receiveLocationMock.Setup(m => m.Name).Returns(name); NamingConventionThunk.ComputeReceiveLocationName(receiveLocationMock.Object).Should().Be(name); }
public void ComputeReceiveLocationNameViaReceiveLocation() { const string name = "Receive Location Name"; var receiveLocationMock = new Mock <IReceiveLocation <object> >(); receiveLocationMock.Setup(m => m.Name).Returns(name); Assert.That(NamingConventionThunk.ComputeReceiveLocationName(receiveLocationMock.Object), Is.EqualTo(name)); }
public void ComputeReceiveLocationNameViaNamingConvention() { var conventionMock = new Mock <INamingConvention <object> >(); var receiveLocationMock = new Mock <IReceiveLocation <object> >(); receiveLocationMock.Setup(m => m.Name).Returns(conventionMock.Object); NamingConventionThunk.ComputeReceiveLocationName(receiveLocationMock.Object); conventionMock.Verify(m => m.ComputeReceiveLocationName(receiveLocationMock.Object), Times.Once()); }