public async Task Null_file_returns_message(MeterReadingTestCase testCase) { var response = await _subject.Post(testCase.Dto); Assert.AreEqual(testCase.ExpectedMessage, ((ObjectResult)response.Result).Value.ToString()); }
public async Task Return_code_correct(MeterReadingTestCase testCase) { var response = await _subject.Post(testCase.Dto); Assert.AreEqual(testCase.ExpectedStatusCode, ((ObjectResult)response.Result).StatusCode); }