public void TestInit() { cfService = new CloudFoundryService(services); fakeCfInstance = new CloudFoundryInstance("fake cf", fakeValidTarget, fakeValidAccessToken); fakeOrg = new CloudFoundryOrganization("fake org", "fake org guid", fakeCfInstance); fakeSpace = new CloudFoundrySpace("fake space", "fake space guid", fakeOrg); fakeApp = new CloudFoundryApp("fake app", "fake app guid", fakeSpace); }
public Bind() { Routes.MapHttpRoute("create_binding", "v2/service_instances/{instanceId}/service_bindings/{bindingId}"); var catalog = new Catalog(Substitute.For<IDatabaseBuilder>()); service = Substitute.For<ICloudFoundryService>(); serviceId = Guid.NewGuid(); catalog.Services.Add(serviceId.ToString(), service); controller = new CatalogController(catalog); }
public Provision() { Routes.MapHttpRoute("provision", "v2/service_instances/{instanceId}"); var catalog = new Catalog(Substitute.For <IDatabaseBuilder>()); service = Substitute.For <ICloudFoundryService>(); serviceId = Guid.NewGuid(); catalog.Services.Add(serviceId.ToString(), service); controller = new CatalogController(catalog); }