コード例 #1
0
 /// <summary>
 /// Submits all pending imposters from the supplied collection to be created in mountebank.
 /// <exception cref="MbDotNet.Exceptions.MountebankException">Thrown if unable to create the imposter.</exception>
 /// </summary>
 public void Submit(ICollection <Imposter> imposters)
 {
     foreach (var imposter in imposters)
     {
         _requestProxy.CreateImposter(imposter);
         Imposters.Add(imposter);
     }
 }
コード例 #2
0
 /// <summary>
 /// Submits all pending imposters to be created in mountebank. Will throw a MountebankException
 /// if unable to create the imposter for any reason.
 /// </summary>
 public void Submit()
 {
     foreach (var imposter in Imposters.Where(imp => imp.PendingSubmission))
     {
         _requestProxy.CreateImposter(imposter);
         imposter.PendingSubmission = false;
     }
 }