public async Task GetAll_ShouldReturnOkResult() { _recordService.GetAll().Returns(Substitute.For <IEnumerable <RecordDo> >()); var result = await _recordsController.GetAll(); result.Should().BeOfType <OkObjectResult>(); }
public void testGetall() { List <Record> recordList = con.GetAll(); Assert.AreEqual(recordList.Count, 2); }