Пример #1
0
        public void AutoSave()

        {
            var campaign = "autosaves";
            var data1    = new DataContainer {
                value = 42
            };

            Assert.True(_service.Delete(campaign));

            for (int i = 0; i < 10; i++)
            {
                Assert.True(_service.AutoSave(campaign, data1));
            }

            var saves = _service.GetSaves(campaign);

            Assert.AreEqual(_service.Settings.AutoSaveCount, saves.Count);
        }