public void GetReporters_Should_return_a_list_of_all_reporters() { //Arrange var reporter1 = new Reporter() {Id = "*****@*****.**"}; var reporter2 = new Reporter() { Id = "*****@*****.**" }; InsertReporterInDB(reporter1); InsertReporterInDB(reporter2); //Act var result = _controllerUndertest.GetReporters(); //Assert Assert.AreEqual(2, result.Count()); }
private static void InsertReporterInDB(Reporter r) { _db.Reporters.Insert(r); }