protected override void Setup()
            {
                User = new User()
                {
                    AuthenticationMode = AuthenticationMode.Windows
                };

                ConnectionResolverMock.SetupGet(x => x.AuthenticationMode).Returns(AuthenticationMode.SqlServer);
                ConnectionResolvers.Add(ConnectionResolverMock.Object);
                ConnectionResolverFacility = new ConnectionResolverFacility(ConnectionResolvers);
            }
 protected override void Setup()
 {
     _expectedConnection = new SqlConnection();
     User = new User()
     {
         AuthenticationMode = AuthenticationMode.Windows
     };
     ConnectionResolverMock.SetupGet(x => x.AuthenticationMode).Returns(AuthenticationMode.Windows);
     ConnectionResolverMock.Setup(x => x.Resolve(It.IsAny<User>()))
         .Returns(_expectedConnection);
     ConnectionResolvers.Add(ConnectionResolverMock.Object);
     ConnectionResolverFacility = new ConnectionResolverFacility(ConnectionResolvers);
 }