public void TwoInactiveUsers()
        {
            // Arrange
            IEnumerable <User> users = new[]
            {
                new User {
                    Id = 1, FirstName = "User1", LastName = "User1", Email = "*****@*****.**", IsActive = false
                },
                new User {
                    Id = 2, FirstName = "User2", LastName = "User2", Email = "*****@*****.**", IsActive = false
                },
                new User {
                    Id = 3, FirstName = "User3", LastName = "User3", Email = "*****@*****.**", IsActive = true
                }
            };

            ApplicationDbContext dbContext = new Mock <ApplicationDbContext>("Test")
                                             .SetupDbContextData(x => x.Users, users)
                                             .Build();


            // Act
            InactiveUsersQuery query  = new InactiveUsersQuery(dbContext);
            IEnumerable <User> result = query.Execute();


            // Assert
            CollectionAssert.AreEqual(users.Where(x => x.IsActive == false).ToArray(), result.ToArray());
        }
        public void TwoInactiveUsers()
        {
            // Arrange
            IEnumerable<User> users = new[]
            {
                new User {Id = 1, FirstName = "User1", LastName = "User1", Email = "*****@*****.**", IsActive = false},
                new User {Id = 2, FirstName = "User2", LastName = "User2", Email = "*****@*****.**", IsActive = false},
                new User {Id = 3, FirstName = "User3", LastName = "User3", Email = "*****@*****.**", IsActive = true}
            };

            ApplicationDbContext dbContext = new Mock<ApplicationDbContext>("Test")
                .SetupDbContextData(x => x.Users, users)
                .Build();

            // Act
            InactiveUsersQuery query = new InactiveUsersQuery(dbContext);
            IEnumerable<User> result = query.Execute();

            // Assert
            CollectionAssert.AreEqual(users.Where(x => x.IsActive == false).ToArray(), result.ToArray());
        }