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

            var result = await _recordsController.GetAll();

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

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