public void ReelsBusiness_ShouldCallMethodUpdateReel_AndUpdateReel() { 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.UpdateReel(It.IsAny <Reel>())).Returns(It.IsAny <int>()); var result = _reelBusiness.UpdateReel(reel); _reelData.Verify(m => m.UpdateReel(reel), Times.Once()); Assert.IsNotNull(result); }
public int UpdateReel(Reel reel) { return(_reelBusiness.UpdateReel(reel)); }