public void Initialize() { _transactionScope = new TransactionScope(); // create test data SpeakerTestDataFactory.CreateStandardSpeakers(); }
public void test_that_get_by_a_valid_key_value_returns_a_non_null_speaker_with_the_given_key() { // arrange var repository = new PollerContainer().Get <ISpeakerRepository>(); // act var speakerId = SpeakerTestDataFactory.GetValidSpeakerId(); var speaker = repository.Get(speakerId); // assert Assert.IsNotNull(speaker); }