public void WithNameOverwriteTest()
        {
            IdentityData.Builder builder = IdentityData.Builder.CreateWithName("test");
            builder.WithName("hoge");
            IdentityData data = builder.Build();

            Assert.AreEqual("hoge", data.UserName);
            Assert.IsNull(data.Email);
            Assert.IsNull(data.Phone);
        }
        public void WithNameTest()
        {
            IdentityData.Builder builder = IdentityData.Builder.CreateWithEmail("*****@*****.**");
            builder.WithName("test");
            IdentityData data = builder.Build();

            Assert.AreEqual("test", data.UserName);
            Assert.AreEqual("*****@*****.**", data.Email);
            Assert.IsNull(data.Phone);
        }
 public void WithNameWithInvalidValueTest()
 {
     IdentityData.Builder builder = IdentityData.Builder.CreateWithName("test");
     builder.WithName("@hoge@");
     builder.Build();
 }
 public void WithNameWithEmptyTest()
 {
     IdentityData.Builder builder = IdentityData.Builder.CreateWithName("test");
     builder.WithName("");
     builder.Build();
 }
 public void WithNameWithNullTest()
 {
     IdentityData.Builder builder = IdentityData.Builder.CreateWithName("test");
     builder.WithName(null);
     builder.Build();
 }