public ExceptionTest()
        {
            MongoDBUtility mongoDBUtility = new MongoDBUtility();

            context = mongoDBUtility.MongoDBContext;

            _profile = new Profile
            {
                FirstName      = "aniha",
                LastName       = "patil",
                AlternateEmail = "*****@*****.**",
                MobileNumber   = 2565987456,
                Occupation     = "Student",
                Gender         = "Female"
            };

            _user = new User
            {
                UserName     = "******",
                Password     = "******",
                Email        = "*****@*****.**",
                MobileNumber = 9685744263,
            };
            _userRepository = new UserRepository(context);
            _userService    = new UserService(_userRepository);

            _dateRepository = new DateRepository(context);
            _dateService    = new DateService(_dateRepository);
        }
Exemplo n.º 2
0
        public BusinessLogicTest()
        {
            _profile = new Profile
            {
                FirstName      = "pragati",
                LastName       = "patil",
                AlternateEmail = "*****@*****.**",
                MobileNumber   = 2565987456,
                Occupation     = "Student",
                Gender         = "Female"
            };

            _user = new User
            {
                UserName     = "******",
                Password     = "******",
                Email        = "*****@*****.**",
                MobileNumber = 9685744263,
                UserStatus   = UserStatus.Active
            };

            MongoDBUtility mongoDBUtility = new MongoDBUtility();

            context         = mongoDBUtility.MongoDBContext;
            _userRepository = new UserRepository(context);
            _userService    = new UserService(_userRepository);

            _dateRepository = new DateRepository(context);
            _dateService    = new DateService(_dateRepository);
        }
        public FunctionalTest()
        {
            MongoDBUtility mongoDBUtility = new MongoDBUtility();

            context         = mongoDBUtility.MongoDBContext;
            _userRepository = new UserRepository(context);
            _userService    = new UserService(_userRepository);


            _userController = new UserController(_userService);
            _user           = new User
            {
                UserName     = "******",
                Password     = "******",
                Email        = "*****@*****.**",
                MobileNumber = 9876543423
            };
            _profile = new Profile
            {
                FirstName      = "pradnya",
                LastName       = "Joshi",
                AlternateEmail = "*****@*****.**",
                MobileNumber   = 2565987456,
                Occupation     = "Student",
                Gender         = "Female"
            };
        }
Exemplo n.º 4
0
        public BoundaryTest()
        {
            MongoDBUtility mongoDBUtility = new MongoDBUtility();

            context = mongoDBUtility.MongoDBContext;


            _user = new User
            {
                UserName     = "******",
                Password     = "******",
                Email        = "*****@*****.**",
                MobileNumber = 9685744263,
            };
            _userRepository = new UserRepository(context);
            _userService    = new UserService(_userRepository);
        }
Exemplo n.º 5
0
 public DatabaseConnectionTest()
 {
     MongoDBUtility = new MongoDBUtility();
 }