public void GetAll_Should_Return_All_Swags_From_The_Database() { //Arrange int expectedCount; using (DayOfDotNetDataContext dc = new DayOfDotNetDataContext()){ expectedCount = (from x in dc.Swags select x).Count(); } //Act ISwagRepository repo = new SwagRepository(); IList<SwagDTO> swags = repo.GetAll(); //Assert swags.Count.ShouldEqual(expectedCount, "Wrong number of Swags"); }