public void When_read_user_without_token_Then_argument_exception_is_thrown() { // Arrange using (var client = new HealthGraphClient(fixture.Auth)) { // Act & Assert Assert.Throws <InvalidOperationException>(() => client.ReadUser()); } }
public void When_read_user_with_token_Then_the_user_instance_is_returned() { // Arrange using (var client = new HealthGraphClient(fixture.Auth, fixture.Token)) { // Act var user = client.ReadUser(); // Assert Assert.NotNull(user); } }