public void Load_OnStandardConfig_ReturnsContainedUser()
        {
            IUserDataRepo repo = new UserDataRepo(
                new OptionsAccessor <LocalUserDataOptions> {
                Value =
                    new LocalUserDataOptions {
                    Path = "../../../Config/SiteSecurity.config"
                }
            });
            List <User> users = repo.LoadUsers().ToList();

            Assert.Single(users, u => u.Name == "*****@*****.**");                         // email is switched in for name by design
        }
Beispiel #2
0
 public UserController()
 {
     repo = new UserDataRepo();
 }
Beispiel #3
0
 public AlbumStoreController()
 {
     repo  = new AlbumDataRepo();
     repou = new UserDataRepo();
     repoc = new CartRepo();
 }