BusinessLogic.Tests.UnitTests.LogicTests.SecurityTests.LinkedPlayedGameValidatorTests.ValidateTests.SetUp C# (CSharp) Method

SetUp() private method

private SetUp ( ) : void
return void
        public void SetUp()
        {
            _autoMocker = new RhinoAutoMocker<LinkedPlayedGameValidator>();

            var applicationLinkagesQueryable = new List<PlayedGameApplicationLinkage>
            {
                CreateExpectedApplicationLinkage(),
                CreateExpectedApplicationLinkage(overrideApplicationName: "some non-matching application name"),
                CreateExpectedApplicationLinkage(overrideEntityId: "some non-matching entity id"),
                CreateExpectedApplicationLinkage(overrideGamingGroupId: -1)
            }.AsQueryable();

            _autoMocker.Get<IDataContext>().Expect(mock => mock.GetQueryable<PlayedGameApplicationLinkage>()).Return(applicationLinkagesQueryable);
        }