public async Task GetAll_ShouldReturnOkResult()
        {
            _recordService.GetAll().Returns(Substitute.For <IEnumerable <RecordDo> >());

            var result = await _recordsController.GetAll();

            result.Should().BeOfType <OkObjectResult>();
        }
Exemplo n.º 2
0
        public void testGetall()
        {
            List <Record> recordList = con.GetAll();

            Assert.AreEqual(recordList.Count, 2);
        }