Пример #1
0
        public void SaveAndLoadSampleDataForClassToXmlTest()
        {
            SamplerServices <PocoEvents> .SaveToFile(SamplerServices <PocoEvents> .CreateSampleData(20));

            Assert.IsTrue(SamplerServices <PocoEvents> .LoadSavedFile().Any());
            SamplerServices <PocoEvents> .DeleteFile();
        }
Пример #2
0
        public void AttachItemsToListTest()
        {
            List <PocoEvents> eventsList = SamplerServices <PocoEvents> .CreateSampleData(10);

            foreach (var events in eventsList)
            {
                events.Pocos = SamplerServices <Poco> .CreateSampleData(10);
            }

            SamplerServices <PocoEvents> .SaveToFile(eventsList);

            SamplerServices <PocoEvents> .DeleteFile();

            Assert.IsTrue(eventsList.Count == 10);
        }
Пример #3
0
 public void DeleteSampleDataForClassToXmlTest()
 {
     SamplerServices <PocoEvents> .DeleteFile();
 }