public void CallsDatabaseBuilderWithCorrectArguments() { var configuration = Substitute.For<IConfiguration>(); var databaseBuilder = Substitute.For<IDatabaseBuilder>(); var service = new MsSqlCloudFoundryService(configuration, databaseBuilder); var request = new RemoveBindingRequest { InstanceId = Guid.NewGuid().ToString(), BindingId = Guid.NewGuid().ToString() }; service.RemoveBinding(request); databaseBuilder.Received().RemoveBinding(Arg.Is<string>(x => x == request.InstanceId), Arg.Is<string>(x => x == request.BindingId)); }
public void RemoveBinding(RemoveBindingRequest request) { databaseBuilder.RemoveBinding(request.InstanceId, request.BindingId); }