public void Save_tournament() { var tournament = new Tournament(); tournament.Id = IdGeneratorMock.Deliver_id().ElementAt(0); tournament.Name = "Test Turnier"; _sut.Save(tournament); Assert.AreEqual(true, true); }
public void Save_and_load_persons() { var person_one = new Person() { Id = IdGeneratorMock.Deliver_id().ElementAt(0), FirstName = "Person", LastName = "One" }; var person_two = new Person() { Id = IdGeneratorMock.Deliver_id().ElementAt(1), FirstName = "Person", LastName = "Two" }; var person_three = new Person() { Id = IdGeneratorMock.Deliver_id().ElementAt(2), FirstName = "Person", LastName = "Three" }; _sut.Save(new Person[] { person_one, person_two, person_three }); var persons = _sut.Load().ToList(); Assert.AreEqual(3, persons.Count()); }