public void ListAll_WithoutParameters_ReturnsRentModelList() { mocker.Setup(o => o.ListAll()).Returns(rentModels); IRentBusiness sut = GetSut(); List <RentModel> rents = sut.ListAll(); Assert.AreSame(rentModels, rents); }
public void ListAll_WithoutParameters_InvokesGetFromRentData() { mocker.Setup(o => o.ListAll()).Returns(rentModels); IRentBusiness sut = GetSut(); sut.ListAll(); mocker.Verify(o => o.ListAll(), Times.Once); }