public async Task Should_Throw_If_Store_Null() { // Given BaseStore <TestObjects> fixture = new BaseStore <TestObjects>(null); // When var result = await Record.ExceptionAsync(async() => await fixture.InitializeStore()); // Then result.Message.Should().Contain("Store Service"); }