assert.Nil(t, err)
}
-func TestIsOnboarded(t *testing.T) {
+func TestValidateAlreadyOnboarded(t *testing.T) {
publicKey := "publicKey"
invokerUnderTest := APIInvokerEnrolmentDetails{
OnboardingInformation: OnboardingInformation{
ApiInvokerPublicKey: "otherPublicKey",
},
}
- assert.False(t, invokerUnderTest.IsOnboarded(otherInvoker))
+ assert.Nil(t, invokerUnderTest.ValidateAlreadyOnboarded(otherInvoker))
otherInvoker.OnboardingInformation.ApiInvokerPublicKey = publicKey
- assert.True(t, invokerUnderTest.IsOnboarded(otherInvoker))
+ assert.NotNil(t, invokerUnderTest.ValidateAlreadyOnboarded(otherInvoker))
}