Example #1
0
        public void SetUp()
        {
            ClearDatabase();

            _user1 = new User
            {
                Username      = "******",
                Password      = "******",
                LastLoginDate = new DateTime(2011, 1, 2, 3, 4, 5),
            };

            _user1.AddReview(new Review
            {
                Title    = "Review 1 title",
                Body     = "Review 1 body",
                DateTime = new DateTime(2011, 2, 3, 4, 5, 6),
                Rating   = 5
            });

            _user1.AddReview(new Review
            {
                Title    = "Review 2 title",
                Body     = "Review 2 body",
                DateTime = new DateTime(2011, 2, 3, 6, 7, 8),
                Rating   = 4
            });

            _repository = new AdoUserRepository();
        }
        public void SetUp()
        {
            ClearDatabase();

            _user1 = new User
                {
                    Username = "******",
                    Password = "******",
                    LastLoginDate = new DateTime(2011, 1, 2, 3, 4, 5),
                };

            _user1.AddReview(new Review
                {
                    Title = "Review 1 title",
                    Body = "Review 1 body",
                    DateTime = new DateTime(2011, 2, 3, 4, 5, 6),
                    Rating = 5
                });

            _user1.AddReview(new Review
                {
                    Title = "Review 2 title",
                    Body = "Review 2 body",
                    DateTime = new DateTime(2011, 2, 3, 6, 7, 8),
                    Rating = 4
                });

            _repository = new AdoUserRepository();
        }