Ejemplo n.º 1
0
        public void GetAllEntitiesCount()
        {
            ExtraContentRepository repository = new ExtraContentRepository();
            var extras = repository.GetAllEntities <ExtraContent>();

            Assert.AreEqual(repository.ExtraContents.Count, extras.Count);
        }
Ejemplo n.º 2
0
        public void GetAllEntitiesEntries()
        {
            ExtraContentRepository repository = new ExtraContentRepository();
            var extras = repository.GetAllEntities <ExtraContent>();

            bool successFlag = false;

            foreach (var obtainedItem in extras)
            {
                successFlag = false;
                foreach (var originalItem in repository.ExtraContents)
                {
                    if (obtainedItem.Equals(originalItem))
                    {
                        successFlag = true;
                        break;
                    }
                }
                if (!successFlag)
                {
                    Assert.Fail(EntriesNotMutchErrorText);
                }
            }
        }