예제 #1
0
        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));
        }
예제 #2
0
        public void IsStateCreated()
        {
            var stateManager = new StateManagerBuilder().Build();
            var readUseCase  = new ReadStateUseCase(stateManager);

            var state = readUseCase.Handle(DateTimeOffset.MinValue, new("user"));

            state.Should().NotBeNull();
        }