Пример #1
0
        public void when_closing_then_raises_closed()
        {
            var store = new ProductStore(
                "ProductStoreFixture.Simple.json",
                new JsonProductSerializer(),
                Mock.Of<IToolkitCatalog>());

            var closed = false;

            store.Closed += (sender, args) => closed = true;

            store.Close();

            Assert.True(closed);
        }