Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // Default mode requires Unity path being passed
            if (args.Contains(DEFAULT_ARG))
            {
                int idx = Array.FindIndex(args, s => s.Contains(UNITY_PATH_ARG));
                if (idx < 0)
                {
                    Debug.LogErrorFormat("Missing Unity path. Pass it with option {0}", UNITY_PATH_ARG + "/path/to/Unity/");
                    return;
                }

                string unityPath = args[idx];
                unityPath = unityPath.Substring(UNITY_PATH_ARG.Length);
                DefaultBindings.UnityDllsDirPath = unityPath;
                DefaultBindings.Generate();
            }

            if (args.Contains(ECS_ARG))
            {
                ECSBindings.Generate();
            }
        }
 public void Setup()
 {
     _nameMapper = new Mock <INameMapper>();
     _nameMapper.Setup(x => x.Map(It.IsAny <Map>())).Returns("http://example.com/Services/service.svc");
     _subject = new ProxyMapper(DefaultBindings.GetBasicHttpBinding(false), null, _nameMapper.Object);
 }