Example #1
0
        protected OpenUrlCommand()
        {
            var config = new MapperConfiguration(cfg => cfg.CreateMap <LoginConfiguration, LoginInfo>());
            var mapper = config.CreateMapper();

            var configurator = new Configurator <SalesforceConfiguration>();
            var loginInfo    = mapper.Map <LoginInfo>(configurator.Configuration.LoginInfo);

            Client = new ForceClient();
            Client.Login(loginInfo);
        }