public void Initialize() { _mockContext = new Mock <InnonAnalyticsEngineEntities>(); _mockdashboardRep = new DashboardRepository(_mockContext.Object); //_modelState = new ModelStateDictionary(); _service = new HomePageWidgetRepository(_mockContext.Object, _mockdashboardRep); }
public void Widget_UnPin_To_HomePageTest( [PexAssumeUnderTest] HomePageWidgetRepository target, HomePage_WidgetDTO home_page_widget_dto ) { target.Widget_UnPin_To_HomePage(home_page_widget_dto); // TODO: add assertions to method HomePageWidgetRepositoryTest.Widget_UnPin_To_HomePageTest(HomePageWidgetRepository, HomePage_WidgetDTO) }
public void Get_HomePage_Widget() { var mockDocumentDbSet = GetQueryableMockDocumentDbSet(); _mockContext.Setup(m => m.tblHomePage_Widget).Returns(mockDocumentDbSet.Object); _service = new HomePageWidgetRepository(_mockContext.Object, _mockdashboardRep); Assert.IsNotNull(_service.Get_Widget_For_Home_Page(21, "65465sd4fsdfsdfsd")); }
public void Widget_Pin_To_HomePageTestThrowsNullReferenceException602() { HomePageWidgetRepository homePageWidgetRepository; homePageWidgetRepository = new HomePageWidgetRepository((IInnonAnalyticsEngineEntities)null); this.Widget_Pin_To_HomePageTest (homePageWidgetRepository, (HomePage_WidgetDTO)null); }
public void Widget_Pin_To_HomePageTest01() { using (PexDisposableContext disposables = PexDisposableContext.Create()) { InnonAnalyticsEngineEntities innonAnalyticsEngineEntities; HomePageWidgetRepository homePageWidgetRepository; innonAnalyticsEngineEntities = new InnonAnalyticsEngineEntities(); innonAnalyticsEngineEntities.sysdiagrams = (DbSet <sysdiagram>)null; innonAnalyticsEngineEntities.tblDatabaseLogs = (DbSet <tblDatabaseLog>)null; innonAnalyticsEngineEntities.tblPoints = (DbSet <tblPoint>)null; innonAnalyticsEngineEntities.tblDescriptions = (DbSet <tblDescription>)null; innonAnalyticsEngineEntities.tblLanguages = (DbSet <tblLanguage>)null; innonAnalyticsEngineEntities.tblLanguageDescriptions = (DbSet <tblLanguageDescription>)null; innonAnalyticsEngineEntities.tblUnits = (DbSet <tblUnit>)null; innonAnalyticsEngineEntities.tblConnectors = (DbSet <tblConnector>)null; innonAnalyticsEngineEntities.tblContainers = (DbSet <tblContainer>)null; innonAnalyticsEngineEntities.tblTags = (DbSet <tblTag>)null; innonAnalyticsEngineEntities.tblTagElements = (DbSet <tblTagElement>)null; innonAnalyticsEngineEntities.tblDashboards = (DbSet <tblDashboard>)null; innonAnalyticsEngineEntities.tblDatawareHouseMigrationLogs = (DbSet <tblDatawareHouseMigrationLog>)null; innonAnalyticsEngineEntities.tblChart_Gauge_Range_Color = (DbSet <tblChart_Gauge_Range_Color>)null; innonAnalyticsEngineEntities.tblDashboard_Widget = (DbSet <tblDashboard_Widget>)null; innonAnalyticsEngineEntities.tblChart_Gauge = (DbSet <tblChart_Gauge>)null; innonAnalyticsEngineEntities.tblChart_Bar = (DbSet <tblChart_Bar>)null; innonAnalyticsEngineEntities.tblTag_Type_Mapping = (DbSet <tblTag_Type_Mapping>)null; innonAnalyticsEngineEntities.tblElements = (DbSet <tblElement>)null; innonAnalyticsEngineEntities.tblChart_Metric = (DbSet <tblChart_Metric>)null; innonAnalyticsEngineEntities.tblChart_Donut = (DbSet <tblChart_Donut>)null; innonAnalyticsEngineEntities.tblChart_Pie = (DbSet <tblChart_Pie>)null; innonAnalyticsEngineEntities.tblChart_Stacked = (DbSet <tblChart_Stacked>)null; innonAnalyticsEngineEntities.tblChart_TreeMap = (DbSet <tblChart_TreeMap>)null; innonAnalyticsEngineEntities.tblChart_Heatmap = (DbSet <tblChart_Heatmap>)null; innonAnalyticsEngineEntities.tblMetrics = (DbSet <tblMetric>)null; innonAnalyticsEngineEntities.tblChart_Counter = (DbSet <tblChart_Counter>)null; innonAnalyticsEngineEntities.tblHomePage_Widget = (DbSet <tblHomePage_Widget>)null; disposables.Add((IDisposable)innonAnalyticsEngineEntities); homePageWidgetRepository = new HomePageWidgetRepository ((IInnonAnalyticsEngineEntities)innonAnalyticsEngineEntities); this.Widget_Pin_To_HomePageTest (homePageWidgetRepository, (HomePage_WidgetDTO)null); disposables.Dispose(); } }
public void Widget_Pin_To_HomePageTest( [PexAssumeUnderTest] HomePageWidgetRepository target, HomePage_WidgetDTO home_page_widget_dto ) { home_page_widget_dto = new HomePage_WidgetDTO(); // tbl_home_page_widget.Widget_Id = 21; home_page_widget_dto.User_Id = "65465sd4fsdfsdfsd"; home_page_widget_dto.widget_x = 0; home_page_widget_dto.widget_y = 1; home_page_widget_dto.widget_width = 10; home_page_widget_dto.widget_height = 20; target.Widget_Pin_To_HomePage(home_page_widget_dto); // TODO: add assertions to method HomePageWidgetRepositoryTest.Widget_Pin_To_HomePageTest(HomePageWidgetRepository, HomePage_WidgetDTO) }