public void SetupAccountService()
 {
     _accountService = BuildAccountService();
 }
 public void SetupAccountService()
 {
     MembershipSettings.SetupGet(x => x.DefaultTenant).Returns("tenant");
     UserRepository.Setup(x => x.GetAll()).Returns(new List<User>()
     {
         new User
         {
             Tenant = "tenant",
             Email = "*****@*****.**",
             Username = "******"
         }
     }.AsQueryable());
     _userAccountService = BuildAccountService();
 }
 public void SetupAccountService()
 {
     MembershipSettings.SetupGet(x => x.MultiTenant).Returns(true);
     _userAccountService = BuildAccountService();
 }
 public void SetupAccountService()
 {
     UserRepository.Setup(x => x.GetAll()).Returns(new List<User>()
     {
         new User
         {
             VerificationKey = "123ABC"
         }
     }.AsQueryable());
     _userAccountService = BuildAccountService();
 }
            public void SetupAccountService()
            {
                MembershipSettings.SetupGet(x => x.MultiTenant).Returns(false);
                MembershipSettings.SetupGet(x => x.DefaultTenant).Returns("tenant");
                UserRepository.Setup(repo => repo.GetAll()).Returns(() => new List<User>()
                {
                    new User()
                    {
                        Tenant = "tenant",
                        Username = "******",
                        Email = "*****@*****.**"
                    },
                    new User()
                    {
                        Tenant = "tenant",
                        Username = "******",
                        Email = "*****@*****.**"
                    },
                    new User()
                    {
                        Tenant = "tenant",
                        Username = "******",
                        Email = "*****@*****.**"
                    }
                }.AsQueryable());

                _userAccountService = BuildAccountService();
            }