public void TestBlockCartPerTime() { ICartDTO dto = new CommonFiveTimesCartDTO(); Terminal terminal = new Terminal(); IBaseCartModel cart = terminal.Create(dto); Assert.IsTrue(terminal.CheckAccess(cart)); terminal.BlockCart(cart); Assert.IsFalse(terminal.CheckAccess(cart)); terminal.UnBlockCart(cart); Assert.IsTrue(terminal.CheckAccess(cart)); }