Example #1
0
        public void Initialize()
        {
            var context = new CustomDashboardsContext();
            var uow     = new UserSettingsUOW(context);

            service = new UserSettingsService(uow);
        }
Example #2
0
        public void HighViewConnection_Test()
        {
            var connectString = ConfigurationManager.AppSettings["AuthenticationConnectString"];

            WinModule.Initialize();
            WinModule.CreateNewSession(connectString, "test", "test");



            var connection = Session.GetSession().OpenConnection();

            var context   = new CustomDashboardsContext(connection, false);
            var uow       = new UserSettingsUOW(context);
            var hvService = new UserSettingsService(uow);


            var widgets = hvService.GetAllWidgets();

            Assert.IsTrue(widgets.Any());
        }