public void GetRouter() { using (var httpTest = new HttpTest()) { Identifier routerId = Guid.NewGuid(); httpTest.RespondWithJson(new Router { Id = routerId }); var result = _networking.GetRouter(routerId); httpTest.ShouldHaveCalled($"*/routers/{routerId}"); Assert.NotNull(result); Assert.Equal(routerId, result.Id); Assert.IsType <NetworkingApiBuilder>(((IServiceResource)result).Owner); } }