Exemple #1
0
        public void CanCompareChannelsSlides()
        {
            ChannelsSlide instance = new ChannelsSlide();

            instance.Channel = null;
            instance.Slide   = null;

            ChannelsSlide instanceToCompareTo = new ChannelsSlide();

            instanceToCompareTo.Channel = null;
            instanceToCompareTo.Slide   = null;

            instance.ShouldEqual(instanceToCompareTo);
        }
        public void CanGetChannelsSlide()
        {
            // Establish Context
            ChannelsSlide channelsSlideToExpect =
                ChannelsSlideInstanceFactory.CreateValidTransientChannelsSlide();

            channelsSlideRepository.Expect(r => r.Get(1))
            .Return(channelsSlideToExpect);

            // Act
            ChannelsSlide channelsSlideRetrieved =
                channelsSlideManagementService.Get(1);

            // Assert
            channelsSlideRetrieved.ShouldNotBeNull();
            channelsSlideRetrieved.ShouldEqual(channelsSlideToExpect);
        }