Exemple #1
0
        public static void Run(string[] keys)
        {
            System.Console.TreatControlCAsInput = true;
            string stringkeys = ConvertListToString <string> .Convert(new List <string>(keys));

            ClientSocket.SendRequest($"Build {stringkeys}");
            OptionSelectionMain.Select();
        }
        public void ConvertListToStringJsonArrayTest()
        {
            List <string> list = new List <string>()
            {
                "Ford", "BMW", "Fiat"
            };
            string expectedResult = ConvertListToString <string> .Convert(list);

            string actualResult = @"[""Ford"",""BMW"",""Fiat""]";

            Assert.AreEqual(expectedResult, actualResult);
        }
Exemple #3
0
        public static EntitySensitiveInformation GetEntity(SensitiveInformation modelSI)
        {
            EntitySensitiveInformation entitySI = new EntitySensitiveInformation();

            entitySI.type               = modelSI.type.ToString();
            entitySI.informationName    = modelSI.informationName;
            entitySI.containerName      = modelSI.containerName;
            entitySI.notes              = modelSI.notes;
            entitySI.username           = modelSI.username;
            entitySI.password           = modelSI.password;
            entitySI.cardName           = modelSI.cardName;
            entitySI.cardEntity         = modelSI.cardEntity;
            entitySI.cardNumber         = modelSI.cardNumber;
            entitySI.cardExpirationDate = modelSI.cardExpirationDate;
            entitySI.cardSecurityNumber = modelSI.cardSecurityNumber;
            entitySI.contactName        = modelSI.contactName;
            entitySI.contactLastname    = modelSI.contactLastname;
            entitySI.businessName       = modelSI.businessName;
            entitySI.postalCode         = modelSI.postalCode;
            entitySI.country            = modelSI.country;
            entitySI.state              = modelSI.state;
            entitySI.birthday           = modelSI.birthday;
            entitySI.favorite           = modelSI.favorite;
            entitySI.contentKey         = modelSI.contentKey;
            entitySI.tagsList           = ConvertListToString <string> .Convert(modelSI.tagsList);

            entitySI.addressesList = ConvertListToString <string> .Convert(modelSI.addressesList);

            entitySI.phoneNumbersList = ConvertListToString <string> .Convert(modelSI.phoneNumbersList);

            entitySI.emailsList = ConvertListToString <string> .Convert(modelSI.emailsList);

            entitySI.urlsList = ConvertListToString <string> .Convert(modelSI.urlsList);

            return(entitySI);
        }
Exemple #4
0
        public void GetValidKeys(NetworkStream stream)
        {
            var converted = ConvertListToString <string> .Convert(SpecialKey.specialKeyList);

            ResponseServer.SendResponse(stream, converted);
        }
        public void GetKeys(NetworkStream stream)
        {
            var converted = ConvertListToString <string> .Convert(container.combinedKeys);

            ResponseServer.SendResponse(stream, converted);
        }