Beispiel #1
0
        private void PopulateData(ListView ideaList)
        {
            var ideas = _ideaService.All();

            foreach (var idea in ideas)
            {
                ideaList.Items.Add(idea.Id.ToString(), idea.Description, null);
            }
        }
Beispiel #2
0
        public void Repository_is_called_when_retrieving_an_idea_list()
        {
            //Arrange
            var          repository = Substitute.For <IIdeaRepository>();
            IIdeaService service    = new IdeaService(repository);

            //Act
            service.All();

            //Assert
            repository.Received().Retrieve();
        }