Beispiel #1
0
        public void ShouldGetUserWhenPassLoginName()
        {
            var user = _sut.GetUser("Dliu");

            Assert.That(user.LastName, Is.EqualTo("Liu"));
        }
Beispiel #2
0
        // GET api/logtracker
        public IEnumerable <string> Get()
        {
            var user = _logTrackerDataAccess.GetUser("Dliu");

            return(new[] { user.LastName, user.FirstName });
        }