public void Get_CallsGetFromRentData_ReturnsRentModel() { mocker.Setup(o => o.Get(id)).Returns(rentModelWithId); IRentBusiness sut = GetSut(); RentModel rent = sut.Get(id); Assert.AreSame(rentModelWithId, rent); }
public void Get_WithId_InvokesGetFromRentData() { mocker.Setup(o => o.Get(id)).Returns(rentModelWithId); IRentBusiness sut = GetSut(); sut.Get(id); mocker.Verify(o => o.Get(id), Times.Once); }