public async Task IdentifyAsyncFailsIfNotGivenIdentity() { var customerIo = new CustomerIo(SiteId, ApiKey); await Assert.ThrowsAsync <ArgumentNullException>(async() => await customerIo.IdentifyAsync()); }
public async Task IdentifyAsyncSucceedsWithIdentityFactory() { var customerIo = new CustomerIo(SiteId, ApiKey, new IdentityFactory()); await customerIo.IdentifyAsync(); }
public async Task IdentifyAsyncSucceedsWithIdentityFactoryAndCustomCustomerDetails() { var customerIo = new CustomerIo(SiteId, ApiKey, new IdentityFactoryWithExtraCustomerDetails()); await customerIo.IdentifyAsync(); }
public async Task IdentifyAsyncSucceedsWithStaticIdentity() { var customerIo = new CustomerIo(SiteId, ApiKey); await customerIo.IdentifyAsync(new CustomerDetails("from_static_identity", "*****@*****.**")); }