Example #1
0
        public async Task クライアントを作成する()
        {
            var client = await repository.GetAsync(clientId);

            Assert.IsNotNull(client);
            Assert.IsNull(client.RequestId);
            Assert.IsNotNull(client.LastAccessedTime);
        }
Example #2
0
        public async Task Setup()
        {
            repository = new MockClientRepository();
            sut        = new ClientCommandHandler(repository);

            clientId = Guid.NewGuid().ToString();
            await sut.Handle(new RegisterClientCommand()
            {
                ClientId  = clientId,
                Type      = "UPLOADER",
                IpAddress = "192.168.10.1"
            });

            var client = await repository.GetAsync(clientId);

            lastAccessedTime = client.LastAccessedTime.Value;
        }