public void Given_A_RepositoryWith6Recordings_Should_ReturnAListWith6Recordings() { RecordingRepository repository = new RecordingRepository(DEVELOPMENT_CONNECTION_STRING); var results = repository.GetAll(); Assert.AreEqual(6, results.Count); }
public void Given_An_EmptyRepository_Should_ReturnAnEmptyList() { var storageAccount = CloudStorageAccount.DevelopmentStorageAccount; var tableClient = storageAccount.CreateCloudTableClient(); var table1 = tableClient.GetTableReference("IVRVoiceRecording"); table1.DeleteIfExists(); table1.Create(); RecordingRepository repository = new RecordingRepository(DEVELOPMENT_CONNECTION_STRING); var results = repository.GetAll(); Assert.AreEqual(0, results.Count); }
public void Given_A_ProfileWithRecordings_Should_ReturnAListOfRecordings() { int profileId = 111; RecordingRepository repository = new RecordingRepository(DEVELOPMENT_CONNECTION_STRING); var results = repository.GetForProfile(profileId); Assert.AreEqual(3, results.Count); }