public static async Task Main(string[] args)
        {
            DependencyFactory.Instance.RegisterDependencies();
            IUserClient client = DependencyFactory.Instance.Resolve <IUserClient>();

            var result = await client.GetByEmailAsync("*****@*****.**");

            Console.WriteLine(result?.Model?.User?.UserId);
        }
Пример #2
0
        public async Task Should_Throw_Should_Throw_ArgumentException_If_Path_Is_Null_Or_Empty()
        {
            await Assert.ThrowsAsync <ArgumentNullException>(() => _userClient.GetByEmailAsync(null)).ConfigureAwait(false);

            await Assert.ThrowsAsync <ArgumentException>(() => _userClient.GetByEmailAsync(string.Empty)).ConfigureAwait(false);
        }