public void ShouldSaveItemsToSaver()
 {
     var itemRing = new ItemRing<string>(items);
     var saver = new MockSaver<IEnumerable<string>>();
     itemRing.Save(saver);
     Approvals.VerifyAll(saver.Saved.First(), "Saved");
 }
Exemplo n.º 2
0
        public void ShouldSaveItemsToSaver()
        {
            var itemRing = new ItemRing <string>(items);
            var saver    = new MockSaver <IEnumerable <string> >();

            itemRing.Save(saver);
            Approvals.VerifyAll(saver.Saved.First(), "Saved");
        }