예제 #1
0
        public void ShouldSaveTagsIntoDatabase()
        {
            //Arrange
            URLService urlService = new URLService(urlRepository);

            //Act
            urlService.AddURLFromDict(urlDictionary);
            //Assert
            urlRepository.Received(2).AddURL(Arg.Any <URL>());
            urlRepository.Received(1).GetAllUrls();
        }