public void ShouldGetUserWhenPassLoginName() { var user = _sut.GetUser("Dliu"); Assert.That(user.LastName, Is.EqualTo("Liu")); }
// GET api/logtracker public IEnumerable <string> Get() { var user = _logTrackerDataAccess.GetUser("Dliu"); return(new[] { user.LastName, user.FirstName }); }