public void Save() { //Arrange var mockRtaEdiResponseRepository = new Mock <IRtaEdiResponseRepository>(); const long result = 12; mockRtaEdiResponseRepository.Setup(f => f.Save(It.IsAny <RtaEdiResponse>())).Returns(result); RtaEdiResponseLogic target = new RtaEdiResponseLogic(mockRtaEdiResponseRepository.Object); //Act long actual = target.Save(new RtaEdiResponse()); //Assert Assert.AreEqual(result, actual); }
public long Save(RtaEdiResponse rtaEdiResponse) { return(_rtaEdiResponseLogic.Save(rtaEdiResponse)); }