protected override void Given()
 {
     Sns.FindTopicAsync("TopicName")
     .Returns(new Topic {
         TopicArn = TopicArn
     });
 }
Beispiel #2
0
 protected override void Given()
 {
     _serializationRegister.Serialize(Arg.Any <Message>(), Arg.Is(true)).Returns(Message);
     Sns.FindTopicAsync("TopicName")
     .Returns(new Topic {
         TopicArn = TopicArn
     });
 }
 protected override void Given()
 {
     Sns.FindTopicAsync("TopicName")
     .Returns(new Topic {
         TopicArn = TopicArn
     });
     Sns.PublishAsync(Arg.Any <PublishRequest>())
     .Returns(PublishResult);
 }
Beispiel #4
0
        protected override void Given()
        {
            _tags = new Dictionary <string, string>
            {
                ["TagOne"] = "Tag-One",
                ["TagTwo"] = "Tag-Two"
            };

            Sns.FindTopicAsync(Arg.Any <string>())
            .Returns(new Topic {
                TopicArn = TopicArn
            });

            Sns.When(x => x.TagResourceAsync(Arg.Any <TagResourceRequest>()))
            .Do(x => _actualCreateRequest = x.Arg <TagResourceRequest>());
        }