public void ThenSnowWhiteCoreShouldGetADisplayNameFromSnowWhiteCloud()
        {
            var task = mockCommunicationService.GetMirrorNames();

            task.Wait();
            names = task.Result;
            Assert.IsNotNull(names.DisplayName);
        }
Esempio n. 2
0
        public MirrorNames GetLocalMirrorNames()
        {
            var names = new MirrorNames();

            names.DisplayName = "specFlow#4444";
            names.SecretName  = "topSecretName";
            return(names);
        }
Esempio n. 3
0
 public Task <MirrorNames> GetMirrorNames()
 {
     return(new TaskFactory().StartNew(() => {
         var names = new MirrorNames();
         names.DisplayName = "specFlow#4444";
         names.SecretName = "topSecretName";
         return names;
     }));
 }
        public MirrorNames GetLocalMirrorNames()
        {
            MirrorNames names = null;

            if (localSettings.Values["SecretName"] != null && localSettings.Values["DisplayName"] != null)
            {
                names = new MirrorNames()
                {
                    DisplayName = localSettings.Values["DisplayName"].ToString(),
                    SecretName  = localSettings.Values["SecretName"].ToString()
                };
                return(names);
            }
            else
            {
                return(null);
            }
        }
 public void PutLocalMirrorNames(MirrorNames names)
 {
     localSettings.Values["DisplayName"] = names.DisplayName;
     localSettings.Values["SecretName"]  = names.SecretName;
 }
 public void PutLocalMirrorNames(MirrorNames names)
 {
     throw new NotImplementedException();
 }
 public MockAppSettings()
 {
     this.names        = new MirrorNames();
     names.DisplayName = "specFlow#4444";
     names.SecretName  = "topSecretName";
 }
 public void PutLocalMirrorNames(MirrorNames names)
 {
     localStorage = names;
 }
Esempio n. 9
0
 public void PutLocalMirrorNames(MirrorNames names)
 {
 }