コード例 #1
0
        public SteamClientTests(Fixtures.SteamClientFixture steamClientFixture, Fixtures.UserSecretsFixture userSecretsFixture)
        {
            _steamClient = Guard.Argument(steamClientFixture).NotNull()
                           .Wrap(f => f.SteamClient).NotNull().Value;

            _steamIds = Guard.Argument(userSecretsFixture).NotNull()
                        .Wrap(f => f.SteamIds).NotNull().NotEmpty().DoesNotContainNull().DoesNotContainDuplicate().Value;
        }
コード例 #2
0
ファイル: RemoteTests.cs プロジェクト: mykquayce/Helpers
        public RemoteTests(Fixtures.HttpClientFixture httpClientFixture, Fixtures.UserSecretsFixture userSecretsFixture)
        {
            _httpClient = Guard.Argument(httpClientFixture).NotNull()
                          .Wrap(f => f.HttpClient).NotNull().Value;

            _key = Guard.Argument(userSecretsFixture).NotNull()
                   .Wrap(f => f.SteamKey).NotNull().NotEmpty().NotWhiteSpace().Value;

            _steamIds = Guard.Argument(userSecretsFixture).NotNull()
                        .Wrap(f => f.SteamIds).NotNull().NotEmpty().DoesNotContainNull().DoesNotContainDuplicate().Value;
        }