Пример #1
0
        public void TestGetAll()
        {
            //Arrange

            //Act
            var result = _controller.GetEntries();

            var list = result.GetValue <OkObjectResult, IQueryable <Entry> >();

            var dto = list.FirstOrDefault();

            //Assert
            Assert.NotNull(dto);
            Assert.NotEqual(0, dto.Id);
            Assert.NotEmpty(dto.Name);
            Assert.NotEmpty(dto.PhoneNumber);
        }