Пример #1
0
        public void CanGetSupportTeamSummaries()
        {
            // Establish Context
            IList <SupportTeamDto> supportTeamSummariesToExpect = new List <SupportTeamDto>();

            var supportTeamDto = new SupportTeamDto();

            supportTeamSummariesToExpect.Add(supportTeamDto);

            supportTeamRepository.Expect(r => r.GetSupportTeamSummaries())
            .Return(supportTeamSummariesToExpect);

            // Act
            IList <SupportTeamDto> supportTeamSummariesRetrieved =
                supportTeamManagementService.GetSupportTeamSummaries();

            // Assert
            supportTeamSummariesRetrieved.ShouldNotBeNull();
            supportTeamSummariesRetrieved.Count.ShouldEqual(1);
            supportTeamSummariesRetrieved[0].ShouldNotBeNull();
            supportTeamSummariesRetrieved[0].ShouldEqual(supportTeamDto);
        }