public void Setup() { Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US"); ConfigurationManager.AppSettings["ReportPath"] = "~/main/reports/"; _shimsContext = ShimsContext.Create(); _fakeHttpContext = new FakeHttpContext.FakeHttpContext(); MockBlastsForDayProxy(); MockReportContentGenerator(); _page = new TotalBlastsForDay(_blastsForDayProxyMock.Object, _reportContentGeneratorMock.Object); InitializePage(_page); RetrievePageControls(); }
public void Constructor_TotalBlastsForDay_5_Objects_Creation_No_Paramters_Test() { // Arrange var firstTotalBlastsForDay = new TotalBlastsForDay(); var secondTotalBlastsForDay = new TotalBlastsForDay(); var thirdTotalBlastsForDay = new TotalBlastsForDay(); var fourthTotalBlastsForDay = new TotalBlastsForDay(); var fifthTotalBlastsForDay = new TotalBlastsForDay(); var sixthTotalBlastsForDay = new TotalBlastsForDay(); // Act, Assert firstTotalBlastsForDay.ShouldNotBeNull(); secondTotalBlastsForDay.ShouldNotBeNull(); thirdTotalBlastsForDay.ShouldNotBeNull(); fourthTotalBlastsForDay.ShouldNotBeNull(); fifthTotalBlastsForDay.ShouldNotBeNull(); sixthTotalBlastsForDay.ShouldNotBeNull(); firstTotalBlastsForDay.ShouldNotBeSameAs(secondTotalBlastsForDay); thirdTotalBlastsForDay.ShouldNotBeSameAs(firstTotalBlastsForDay); fourthTotalBlastsForDay.ShouldNotBeSameAs(firstTotalBlastsForDay); fifthTotalBlastsForDay.ShouldNotBeSameAs(firstTotalBlastsForDay); sixthTotalBlastsForDay.ShouldNotBeSameAs(firstTotalBlastsForDay); sixthTotalBlastsForDay.ShouldNotBeSameAs(fourthTotalBlastsForDay); }