コード例 #1
0
        public void Should_Create_A_Mobile_User()
        {
            var m = new MobileUserManager(mobileUserRepository);

            var id = new Random().Next(0123456789, 1799999999);

            var mobileUser = m.Create(id, "Andres", "Villenas", "*****@*****.**", "0987174494", "AndroidUserId", "Android");

            Assert.NotNull(mobileUser);
        }
コード例 #2
0
        public void Create([FromBody] MobileUserCreationViewModel mobileUserCreation)
        {
            mobileUserCreation.MobileId   = "Android1";
            mobileUserCreation.MobileType = "Android";

            mobileUserManager.Create(
                mobileUserCreation.Id,
                mobileUserCreation.Name,
                mobileUserCreation.LastName,
                mobileUserCreation.Email,
                mobileUserCreation.Phone,
                mobileUserCreation.MobileId,
                mobileUserCreation.MobileType);
        }