示例#1
0
        public void StudentGetsMappedCorrectly()
        {
            //Assign
            var expected = _expectedStudent;

            //Act
            var result = _readOnly.GetAllStudents();

            //Assert
            result.First().Should().BeEquivalentTo(expected);
            _fileMock.Verify(x => x.File.ReadAllText(It.IsAny <string>()), Times.Once);
        }
 public IEnumerable <Student> Get()
 {
     return(_readOnlyDb.GetAllStudents());
 }