Esempio n. 1
0
        public PredictionHelperTests()
        {
            User = new dom.User()
            {
                Name     = "anon",
                Username = "******",
                Password = "******"
            };

            Pred = new dom.Prediction()
            {
                Ticker = "ryry"
            };

            sut = new dom.Prediction()
            {
                CompanyName = "ryry's chicken and waffles",
                Ticker      = "ryry",
            };

            PredictionHelper = new dat.PredictionHelper(new Data.InMemoryDbContext());
            UserHelper       = new dat.UserHelper(new Data.InMemoryDbContext());

            UserHelper.SetUser(User);
            PredictionHelper.SetPrediction(Pred, User.Username);
        }
Esempio n. 2
0
        public UserHelperTests()
        {
            ExistUser = new dom.User()
            {
                Name     = "anon",
                Username = "******",
                Password = "******"
            };

            sut = new dom.User()
            {
                Name     = "john",
                Username = "******",
                Password = "******"
            };

            pr = new dom.Prediction()
            {
                Ticker = "ryry"
            };

            UserHelper = new dat.UserHelper(new Data.InMemoryDbContext());
            ph         = new dat.PredictionHelper(new Data.InMemoryDbContext());

            UserHelper.SetUser(ExistUser);
            ph.SetPrediction(pr, ExistUser.Username);
        }