Example #1
0
        public void ListAll_WithoutParameters_ReturnsRentModelList()
        {
            mocker.Setup(o => o.ListAll()).Returns(rentModels);
            IRentBusiness sut = GetSut();

            List <RentModel> rents = sut.ListAll();

            Assert.AreSame(rentModels, rents);
        }
Example #2
0
        public void ListAll_WithoutParameters_InvokesGetFromRentData()
        {
            mocker.Setup(o => o.ListAll()).Returns(rentModels);
            IRentBusiness sut = GetSut();

            sut.ListAll();

            mocker.Verify(o => o.ListAll(), Times.Once);
        }