protected override void Given() { Sns.FindTopicAsync("TopicName") .Returns(new Topic { TopicArn = TopicArn }); }
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); }
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>()); }