public override void Given()
 {
     IdentityFieldBackingValue = IdentityDisplay;
     Identities = new Dictionary <string, IEnumerable <ITeamFoundationIdentity> >
     {
         { IdentityFieldBackingValue, new [] { new MockTeamFoundationIdentity(MockIdentityDescriptor.Create(IdentityAlias), IdentityDisplay, Guid.Empty) } }
     };
     base.Given();
 }
예제 #2
0
 /// <summary>
 ///     Creates a new instance of the IMS
 /// </summary>
 /// <param name="userMappings">
 ///     Collection of alias and display names for which to initialize the IMS
 /// </param>
 public MockIdentityManagementService(IDictionary <string, string> userMappings)
     : this(
         userMappings.ToDictionary(
             kvp => kvp.Key,
             kvp => (ITeamFoundationIdentity) new MockTeamFoundationIdentity(
                 MockIdentityDescriptor
                 .Create(kvp.Key),
                 kvp.Value,
                 Guid.Empty)))
 {
 }