public void IsStateFailedToCreateForUnknownUser() { var user = new UserId(string.Empty); var stateManager = new StateManagerBuilder().Build(); var readUseCase = new ReadStateUseCase(stateManager); Assert.Throws <InvalidUserException>(() => readUseCase.Handle(DateTimeOffset.MinValue, user)); }
public void IsStateCreated() { var stateManager = new StateManagerBuilder().Build(); var readUseCase = new ReadStateUseCase(stateManager); var state = readUseCase.Handle(DateTimeOffset.MinValue, new("user")); state.Should().NotBeNull(); }