Esempio n. 1
0
        public async Task Sync_Records_If_Missing()
        {
            rv = new ReadingEventTypeValidation(nuContext.Object);

            moqStatus.SetupData();
            var count = await moqStatus.Object.CountAsync();

            Assert.IsTrue(count == 0);

            Array.ForEach(defReadingEvents.ToArray(), a => {
                moqStatus.Object.Add(a);
            });

            Assert.AreEqual(moqStatus.Object.Count(), defReadingEvents.Count);
        }
Esempio n. 2
0
 public void ReadingEventTypeValidationTestInitialize()
 {
     rv = new ReadingEventTypeValidation();
     defReadingEvents = rv.DefaultReadingEventTypes;
 }