public MockYastahDbTestContext(
            YastahTestEntitySet entities)
        {
            Entities = entities;

            MockConcurrencyResolutionService = new Mock <IConcurrencyResolutionService>();

            MockContext = new MockYastahDbContext(
                entities,
                MockConcurrencyResolutionService.Object);
        }
        public MockYastahDbContext(
            YastahTestEntitySet entities,
            IConcurrencyResolutionService concurrencyResolutionService)
            : base(concurrencyResolutionService)
        {
            _lazyMockAdministrationActionCategorySet = SetupLazyMockSet(
                entities.AdministrationActionCategories);

            _lazyMockAdministrationActionTypeSet = SetupLazyMockSet(
                entities.AdministrationActionTypes);

            _lazyMockAdministrationActionSet = SetupLazyMockSet(
                entities.AdministrationActions);

            _lazyMockAuthenticationTicketSet = SetupLazyMockSet(
                entities.AuthenticationTickets);

            _lazyMockCharacterGuildSet = SetupLazyMockSet(
                entities.CharacterGuilds);

            _lazyMockCharacterGuildDivisionSet = SetupLazyMockSet(
                entities.CharacterGuildDivisions);

            _lazyMockCharacterGuildDivisionVersionSet = SetupLazyMockSet(
                entities.CharacterGuildDivisionVersions);

            _lazyMockCharacterGuildVersionSet = SetupLazyMockSet(
                entities.CharacterGuildVersions);

            _lazyMockCharacterLevelDefinitionSet = SetupLazyMockSet(
                entities.CharacterLevelDefinitions);

            _lazyMockCharacterLevelDefinitionVersionSet = SetupLazyMockSet(
                entities.CharacterLevelDefinitionVersions);

            _lazyMockCharacterSet = SetupLazyMockSet(
                entities.Characters);

            _lazyMockCharacterVersionSet = SetupLazyMockSet(
                entities.CharacterVersions);

            _lazyMockPermissionCategorySet = SetupLazyMockSet(
                entities.PermissionCategories);

            _lazyMockPermissionSet = SetupLazyMockSet(
                entities.Permissions);

            _lazyMockRolePermissionMappingSet = SetupLazyMockSet(
                entities.RolePermissionMappings);

            _lazyMockRoleVersionSet = SetupLazyMockSet(
                entities.RoleVersions);

            _lazyMockRoleSet = SetupLazyMockSet(
                entities.Roles);

            _lazyMockDefaultPermissionMappingSet = SetupLazyMockSet(
                entities.DefaultPermissionMappings);

            _lazyMockDefaultRoleMappingSet = SetupLazyMockSet(
                entities.DefaultRoleMappings);

            _lazyMockUserPermissionMappingSet = SetupLazyMockSet(
                entities.UserPermissionMappings);

            _lazyMockUserRoleMappingSet = SetupLazyMockSet(
                entities.UserRoleMappings);

            _lazyMockUserSet = SetupLazyMockSet(
                entities.Users);
        }