public async Task UsesApiWithoutCredentials() { await LoginManager.ResetPassword(Email.FromString("*****@*****.**")); ApiFactory.Received().CreateApiWith(Arg.Is <Credentials>( arg => arg.Header.Name == null && arg.Header.Value == null && arg.Header.Type == HttpHeader.HeaderType.None)); }