public void AccessTokenServiceMakesAccessTokenFromRequest() { var config = A.Fake <IConfiguration>(); var cat = Guid.NewGuid().ToString(); var dat = Guid.NewGuid().ToString(); config["ClientAccessToken"] = ""; config["DarwinAccessToken"] = dat; var request = new BaseRequest { AccessToken = cat }; var service = new AccessTokenService(A.Fake <ILogger <AccessTokenService> >(), config); var token = service.MakeAccessToken(request); Assert.Equal(cat, token.TokenValue); }