public void Given_Company_When_Name_is_Fatface_then_only_one_user_is_returned()
        {
            var handler = new GetPortalUsersQueryHandler(_mockDbContext.Object);
            var query = new GetPortalUsersQuery() { CanOrCompanyName = "Fatface" };

            var userViewModelList = handler.Execute(query);
            Assert.That(userViewModelList.Count, Is.EqualTo(1));
        }
        public void Given_Company_When_Name_is_Levis_then_two_users_are_returned()
        {
            var handler = new GetPortalUsersQueryHandler(_mockDbContext.Object);
            var query = new GetPortalUsersQuery() { CanOrCompanyName = "Levis" };

            var userViewModelList = handler.Execute(query);
            Assert.That(userViewModelList.Count, Is.EqualTo(2));
        }
        public void Given_CAN_When_Value_is_Demo1_then_Peninsula_Client_with_client_id_1_is_returned()
        {
            var handler = new GetPortalUsersQueryHandler(_mockDbContext.Object);
            var query = new GetPortalUsersQuery() {CanOrCompanyName = "Demo1"};

               var userViewModelList =  handler.Execute(query);

               Assert.IsNotNull(userViewModelList);
               Assert.That(userViewModelList[0].ClientId, Is.EqualTo(1));
        }