public void When_DistinctIdAndAliasFromParams_Then_AllPropertiesSet() { MessageBuildResult messageBuildResult = AliasMessageBuilder.Build(Token, null, DistinctId, Alias); AssertMessageSuccess(messageBuildResult, Token, DistinctId, Alias); }
public void When_DistinctIdFromParamsAndSuperProps_Then_DistinctIdFromParamsOverwritesSuperProps() { var superProperties = CreateSuperProperties( ObjectProperty.Default(DistinctIdPropertyName, PropertyOrigin.SuperProperty, SuperDistinctId)); MessageBuildResult messageBuildResult = AliasMessageBuilder.Build(Token, superProperties, DistinctId, Alias); AssertMessageSuccess(messageBuildResult, Token, DistinctId, Alias); }
public void When_TokenFromSuperProps_Then_AllPropertiesSet() { var superProperties = CreateSuperProperties( ObjectProperty.Default("token", PropertyOrigin.SuperProperty, Token)); MessageBuildResult messageBuildResult = AliasMessageBuilder.Build(null, superProperties, DistinctId, Alias); AssertMessageSuccess(messageBuildResult, Token, DistinctId, Alias); }
private MessageBuildResult BuildAliasMessage(object distinctId, object alias) { return(AliasMessageBuilder.Build(token, superProperties, distinctId, alias)); }
public void When_NoAlias_Then_MessageBuildFails() { MessageBuildResult messageBuildResult = AliasMessageBuilder.Build(Token, null, DistinctId, null); AssertMessageFail(messageBuildResult); }