public void MoveForwardOneDay(int startingSellIn, int startingQuality, int resultSellIn, int resultQuality) { BackStagePasses backstagepasses = new BackStagePasses() { SellIn = startingSellIn, Quality = startingQuality }; backstagepasses.MoveForwardOneDay(); int expectedQuality = backstagepasses.Quality; int sellin = backstagepasses.SellIn; Assert.That(sellin, Is.EqualTo(resultSellIn)); Assert.That(expectedQuality, Is.EqualTo(resultQuality)); }
/// <summary> /// Initializes a new instance of BackStagePassesUpdateStrategy class. /// </summary> /// <param name="item">Item type.</param> public BackStagePassesUpdateStrategy(BackStagePasses item) { _item = item; }