public void UsesTrackingNumberUtilities() { var downstreamTracker = MockRepository.GenerateMock<ITracker>(); var expectedTrackingData = new TrackingData(); downstreamTracker.Expect(x => x.GetTrackingData("abc123")).Return(expectedTrackingData); var t = new TrackingNumberStandardizerTracker(downstreamTracker); var actualTrackingData = t.GetTrackingData("abc 123"); downstreamTracker.VerifyAllExpectations(); }
public void UseDownstreamTracker() { var downstreamTracker = MockRepository.GenerateMock<ITracker>(); var expectedTrackingData = new TrackingData(); downstreamTracker.Expect(x => x.GetTrackingData("abc")).Return(expectedTrackingData); var t = new TrackingNumberStandardizerTracker(downstreamTracker); var actualTrackingData = t.GetTrackingData("abc"); Assert.AreEqual(expectedTrackingData, actualTrackingData); }
public void UsesTrackingNumberUtilities() { var downstreamTracker = MockRepository.GenerateMock <ITracker>(); var expectedTrackingData = new TrackingData(); downstreamTracker.Expect(x => x.GetTrackingData("abc123")).Return(expectedTrackingData); var t = new TrackingNumberStandardizerTracker(downstreamTracker); var actualTrackingData = t.GetTrackingData("abc 123"); downstreamTracker.VerifyAllExpectations(); }
public void UseDownstreamTracker() { var downstreamTracker = MockRepository.GenerateMock <ITracker>(); var expectedTrackingData = new TrackingData(); downstreamTracker.Expect(x => x.GetTrackingData("abc")).Return(expectedTrackingData); var t = new TrackingNumberStandardizerTracker(downstreamTracker); var actualTrackingData = t.GetTrackingData("abc"); Assert.AreEqual(expectedTrackingData, actualTrackingData); }