Skip to content

Commit

Permalink
Fixing specs by adding the new client indirect dependency to the serv…
Browse files Browse the repository at this point in the history
…ice provider mock
  • Loading branch information
einari committed Aug 27, 2023
1 parent 984d488 commit 259ce44
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class a_rest_kernel_connection : Specification
protected Mock<ITimerFactory> timer_factory;
protected Mock<IExecutionContextManager> execution_context_manager;
protected Mock<IConnectionLifecycle> connection_lifecycle;
protected Mock<IClient> client;
protected KernelConnection connection;
protected ExecutionContext execution_context;
protected MicroserviceId microservice_id;
Expand All @@ -70,6 +71,9 @@ void Establish()
features.Setup(_ => _.Get<IServerAddressesFeature>()).Returns(server_addresses.Object);
server_addresses.SetupGet(_ => _.Addresses).Returns(new[] { "http://localhost:5000" });

client = new();
service_provider.Setup(_ => _.GetService(typeof(IClient))).Returns(client.Object);

task_factory = new();
timer_factory = new();
execution_context_manager = new();
Expand Down

0 comments on commit 259ce44

Please sign in to comment.