Exemple #1
0
        public async Task PutUserAsync_ShouldSucceed()
        {
            PutUserResponse response = await _userClient.PutUserAsync(
                _fixture.UsernameExisting,
                new PutUserBody()
            {
                Extra = new Dictionary <string, object>()
                {
                    ["somedata"] = nameof(PutUserAsync_ShouldSucceed)
                }
            });

            Assert.False(response.Error);
            Assert.Equal(HttpStatusCode.OK, response.Code);
            Assert.Equal(_fixture.UsernameExisting, response.User);
            Assert.True(response.Active);
            Assert.True(response.Extra.ContainsKey("somedata"));
            Assert.Equal(nameof(PutUserAsync_ShouldSucceed), response.Extra["somedata"].ToString());
        }
Exemple #2
0
 protected override void ExpectResponse(PutUserResponse response)
 {
 }