コード例 #1
0
        public async Task CreateForGeneratesCorrectBodyContent()
        {
            var options = new MeetupClientOptions
            {
                Client = FakeHttpClient.AssertContent <Venue>(v => {
                    Assert.NotNull(v);
                    Assert.Equal("random place", v.Name);
                })
            };

            var meetup = MeetupClient.WithApiToken("testToken", options);
            await meetup.Venues.CreateFor("tech-nottingham", new Venue { Name = "random place" });
        }