示例#1
0
        public void MovieRemoverThrowsException()
        {
            MockedDummyProfileScreenRepository _mockedDummy = new MockedDummyProfileScreenRepository();
            IProfileScreenService _profileScreenService     = new ProfileScreenService(_mockedDummy._profileScreenRepository);

            Assert.Throws <IncorrectUserDataException>(() => _profileScreenService.MovieRemover(0));
        }
示例#2
0
        public void MovieRemoverRemovesFromWatchList()
        {
            MockedDummyProfileScreenRepository _mockedDummy = new MockedDummyProfileScreenRepository();
            IProfileScreenService _profileScreenService     = new ProfileScreenService(_mockedDummy._profileScreenRepository);

            _profileScreenService.MovieRemover(1);
            Assert.AreEqual(2, _mockedDummy._profileScreenRepository.GetUserWatchlist(1).Count());
        }