public void TestReadWorks() { Repository repository = new Repository(new SqlConnectionDev()); Club club = new Club(); club.clubId = 2; var result = repository.Read<Club>(club); Assert.IsNotNull(result); }
public void TestDeleteWorks() { Repository repository = new Repository(new SqlConnectionDev()); Club club = new Club(); club.clubId = 1; bool result = repository.Delete(club); Assert.IsNotNull(result); }
public void TestCreateWorks() { Repository repository = new Repository(new SqlConnectionDev()); Club club = new Club(); club.Name = "Stirling Kyokushin"; bool result = repository.Create(club); Assert.That(result); }