Esempio n. 1
0
        public void ReelsBusiness_ShouldCallMethodSaveReel_AndCreateNewReel()
        {
            Reel reel = new Reel()
            {
                Name       = "The Show Reel",
                Standard   = "PAL",
                Definition = "SD",
                Clips      = new List <Clip>
                {
                    new Clip
                    {
                        ClipId      = 1,
                        Name        = "Bud Light",
                        Description = "A factory is working on the new Bud Light Platinum.",
                        Standard    = "PAL",
                        Definition  = "SD",
                        StartTime   = new Timecode(),
                        EndTime     = new Timecode {
                            Seconds = 30, Frames = 12
                        }
                    }
                }
            };

            _reelData.Setup(m => m.SaveReel(It.IsAny <Reel>())).Returns(It.IsAny <int>());

            var result = _reelBusiness.SaveReel(reel);

            _reelData.Verify(m => m.SaveReel(reel), Times.Once());
            Assert.IsNotNull(result);
        }
Esempio n. 2
0
 public int SaveReel(Reel reel)
 {
     return(_reelBusiness.SaveReel(reel));
 }