public void CreateFloatingIP() { using (var httpTest = new HttpTest()) { Identifier networkId = Guid.NewGuid(); Identifier floatingIPId = Guid.NewGuid(); httpTest.RespondWithJson(new FloatingIP { Id = floatingIPId }); var definition = new FloatingIPCreateDefinition(networkId); var result = _networking.CreateFloatingIP(definition); httpTest.ShouldHaveCalled("*/floatingips"); Assert.NotNull(result); Assert.Equal(floatingIPId, result.Id); Assert.IsType <NetworkingApiBuilder>(((IServiceResource)result).Owner); } }