public async Task ScriptsClient_List_With_Filter()
        {
            var connection = new Mock <IConnection>();

            connection.Setup(c => c.Get <IList <Script> >(ApiUrls.ScriptsList(), It.IsAny <Dictionary <string, string> >()))
            .ReturnsAsync(() =>
            {
                var json = System.IO.File.ReadAllText("./Fixtures/Scripts_GetScripts.json");
                return(JsonConvert.DeserializeObject <IList <Script> >(json));
            });

            var scriptsClient = new ScriptsClient(connection.Object);
            var result        = await scriptsClient.List(new ScriptFilter()
            {
                Id          = "1234",
                Description = "asdf",
                DTCreated   = DateTime.Now,
                IsEnabled   = true,
                Name        = "asdf",
                OwnerId     = "12345asdf",
                OwnerType   = ScriptOwnerType.Team,
                RunOnce     = true
            });

            Assert.AreEqual(1, result.Count);
        }
        public async Task ScriptsClient_List_HappyPath()
        {
            var connection = new Mock <IConnection>();

            connection.Setup(c => c.Get <IList <Script> >(ApiUrls.ScriptsList(), null))
            .ReturnsAsync(() =>
            {
                var json = System.IO.File.ReadAllText("./Fixtures/Scripts_GetScripts.json");
                return(JsonConvert.DeserializeObject <IList <Script> >(json));
            });

            var scriptsClient = new ScriptsClient(connection.Object);
            var result        = await scriptsClient.List();

            Assert.AreEqual(1, result.Count);
        }