public static async Task Main(string[] args) { DependencyFactory.Instance.RegisterDependencies(); IRestClient restClient = DependencyFactory.Instance.Resolve <IRestClient>(); IUserClient client = DependencyFactory.Instance.Resolve <IUserClient>(); await client.UpdateAsync(new UpdateUserRequest { Email = "*****@*****.**", UserId = "*****@*****.**", DataFields = new { Name = "aksel" } }); await client.DeleteByEmailAsync("*****@*****.**"); }
public async Task Should_Throw_Should_Throw_ArgumentException_If_Path_Is_Null_Or_Empty() { await Assert.ThrowsAsync <ArgumentNullException>(() => _userClient.DeleteByEmailAsync(null)).ConfigureAwait(false); await Assert.ThrowsAsync <ArgumentException>(() => _userClient.DeleteByEmailAsync(string.Empty)).ConfigureAwait(false); }