Exemplo n.º 1
0
        public void Models_WhenCallWithoutAnyFilters_ShouldReturnExpectedValue()
        {
            // Act
            var models = _appDataContext.Models <AccountType>().ToList();

            // Assert
            Assert.IsNotNull(models);
            Assert.AreEqual(9, models.Count);
            Assert.IsTrue(models.All(x => x.Id != Guid.Empty));
            Assert.IsTrue(models.All(x => !string.IsNullOrEmpty(x.Name)));
        }