예제 #1
0
            public void SetUp()
            {
                var account = CloudStorageAccount.DevelopmentStorageAccount;

                _client = account.CreateCloudTableClient();
                _calls  = new List <CloudTableProjectionHandlerCall>();
                var handler = new CloudTableProjectionHandler(
                    typeof(MatchMessage1),
                    (client, msg, token) =>
                {
                    _calls.Add(new CloudTableProjectionHandlerCall(client, msg, token));
                    return(Task.FromResult(false));
                });

                _sut = SutFactory(new[] { handler });
            }
 public void SetUp()
 {
     var account = CloudStorageAccount.DevelopmentStorageAccount;
     _client = account.CreateCloudTableClient();
     _calls = new List<CloudTableProjectionHandlerCall>();
     var handler1 = new CloudTableProjectionHandler(
         typeof (MatchMessage1),
         (client, msg, token) =>
         {
             _calls.Add(new CloudTableProjectionHandlerCall(client, msg, token));
             return Task.FromResult(false);
         });
     var handler2 = new CloudTableProjectionHandler(
         typeof(MatchMessage2),
         (client, msg, token) =>
         {
             _calls.Add(new CloudTableProjectionHandlerCall(client, msg, token));
             return Task.FromResult(false);
         });
     var handler3 = new CloudTableProjectionHandler(
         typeof(MatchMessage1),
         (client, msg, token) =>
         {
             _calls.Add(new CloudTableProjectionHandlerCall(client, msg, token));
             return Task.FromResult(false);
         });
     var handler4 = new CloudTableProjectionHandler(
         typeof(MatchMessage2),
         (client, msg, token) =>
         {
             _calls.Add(new CloudTableProjectionHandlerCall(client, msg, token));
             return Task.FromResult(false);
         });
     _sut = SutFactory(new[] {handler1, handler2, handler3, handler4});
 }