Пример #1
0
        public void Should_throw_exception_if_calling_user_devices_with_null_userId(CastleClient sut)
        {
            Func <Task> act = async() => await sut.GetDevicesForUser(null);

            act.Should().Throw <ArgumentException>();
        }
Пример #2
0
        public void Should_get_user_devices(string userId, CastleClient sut)
        {
            Func <Task> act = async() => await sut.GetDevicesForUser(userId);

            act.Should().NotThrow();
        }