Пример #1
0
        public void Attach_uses_persister_to_load_stop()
        {
            var path = new PathData {
                StopItem = page
            };

            path = path.Detach();
            path.StopItem.ShouldBe(null);

            var loadedPath = path.Attach(persister);

            loadedPath.StopItem.ID.ShouldBe(1);
        }
Пример #2
0
        public void Attach_uses_persister_to_load_page()
        {
            var path = new PathData {
                CurrentPage = page
            };

            path = path.Detach();
            path.CurrentPage.ShouldBe(null);

            var loadedPath = path.Attach(persister);

            loadedPath.CurrentPage.ID.ShouldBe(1);
        }