Exemple #1
0
        public async void GetAsync_GivenKnownId_ShouldReturnIncidentData(string incidentId)
        {
            var testObject = new IncidentFileRepository();

            var result = await testObject.GetAsync(incidentId);

            Assert.Equal(incidentId, result.Id);
        }
Exemple #2
0
        public async void GetAsync_GivenUnknownId_ShouldReturnEmptyIncident(string incidentId)
        {
            var testObject = new IncidentFileRepository();

            var result = await testObject.GetAsync(incidentId);

            Assert.Null(result.Id);
        }