public void GenerateRandomData_CalledWithQtyIntParameter_ReturnsCollectionAndGetsCallerName() { int qtyOfModels = 2; List <PersonModel> collection = _serializationService.GenerateRandomData(qtyOfModels); Assert.Equal(2, collection.Count()); Assert.Contains(collection, c => c.Index > 0); Assert.Contains(collection, c => !string.IsNullOrEmpty(c.ContentModel.Name)); Assert.Contains(collection, c => c.ContentModel.Date > DateTime.Now.AddYears(-10) && c.ContentModel.Date < DateTime.Now); Assert.Contains(collection, c => c.ContentModel.Visits == 1 || c.ContentModel.Visits == null); }