private async Task <IDataStreamConnector> GetConnector(DataStream stream)
        {
            var connector = new AWSElasticSearchConnector(new InstanceLogger(new Utils.LogWriter(), "HOSTID", "1234", "INSTID"));

            Assert.IsTrue((await connector.InitAsync(stream)).Successful);
            return(connector);
        }
        public async Task AWS_E3_Insert_Record()
        {
            var stream = GetValidStream();

            var connector = new AWSElasticSearchConnector(new InstanceLogger(new Utils.LogWriter(), "HOSTID", "1234", "INSTID"));
            var result    = await connector.InitAsync(stream);

            Assert.IsTrue(result.Successful);

            var rnd = new Random();

            await AddObject(connector, stream, "dev123", null,
                            new KeyValuePair <string, object>("pointIndex", 0),
                            new KeyValuePair <string, object>("pointOn", 50 - rnd.NextDouble() * 100),
                            new KeyValuePair <string, object>("pointTwo", 50 - rnd.NextDouble() * 100),
                            new KeyValuePair <string, object>("pointThree", $"testing-{rnd.Next(100, 10000)}"));
        }