Пример #1
0
        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);
        }
Пример #2
0
        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);
        }